Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
time off by five hours
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
n3x
Apprentice
Apprentice


Joined: 14 Apr 2003
Posts: 247
Location: Kingston, Ontario (uni) Westport, CT (home)

PostPosted: Tue Mar 22, 2005 11:20 pm    Post subject: time off by five hours Reply with quote

Every time I reboot my computer, the time is slow by five hours (exactly). Now I'm EST (GMT -5), so I thought that might be the problem, but date shows me as EST and /usr/share/zoneinfo is pointing to the right place. I would appreciated any ideas :D

Thanks,
james
Back to top
View user's profile Send private message
acasto
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 236
Location: Durka-Durka-Stan

PostPosted: Tue Mar 22, 2005 11:29 pm    Post subject: Reply with quote

Check /etc/rc.conf, I had something like that once and had to set the time to Local instead of UTC


- Adam
_________________
Leerrroooooyyyyyyyy JENKINS!!!!1111...................

"You know the Nazi's had pieces of flare.. that they made the Jews wear."
Back to top
View user's profile Send private message
n3x
Apprentice
Apprentice


Joined: 14 Apr 2003
Posts: 247
Location: Kingston, Ontario (uni) Westport, CT (home)

PostPosted: Tue Mar 22, 2005 11:58 pm    Post subject: Reply with quote

I had a look in rc.conf, but there's no time option. Should there be? Perhaps it magically disappeared...

Cheers,
james
Back to top
View user's profile Send private message
acasto
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 236
Location: Durka-Durka-Stan

PostPosted: Wed Mar 23, 2005 12:00 am    Post subject: Reply with quote

The variable should be CLOCK


- Adam
_________________
Leerrroooooyyyyyyyy JENKINS!!!!1111...................

"You know the Nazi's had pieces of flare.. that they made the Jews wear."
Back to top
View user's profile Send private message
n3x
Apprentice
Apprentice


Joined: 14 Apr 2003
Posts: 247
Location: Kingston, Ontario (uni) Westport, CT (home)

PostPosted: Wed Mar 23, 2005 12:04 am    Post subject: Reply with quote

Nope, no such thing. I stuck a CLOCK="utc" at the end of the file. We'll see if that works.

EDIT:: seems to be working after a quick reboot, thanks a bunch.
Back to top
View user's profile Send private message
acasto
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 236
Location: Durka-Durka-Stan

PostPosted: Wed Mar 23, 2005 12:08 am    Post subject: Reply with quote

hmmmm... I'm not sure. I'm not using amd64 so maybe something with the profile. Either way here's the snippet from my rc.conf file that shows that:

Code:
# Set CLOCK to "UTC" if your system clock is set to UTC (also known as
# Greenwich Mean Time).  If your clock is set to the local time, then set CLOCK
# to "local".  This setting is used by the /etc/init.d/clock script.

#CLOCK="local"




edit: okay, glad it's working :)


- Adam
_________________
Leerrroooooyyyyyyyy JENKINS!!!!1111...................

"You know the Nazi's had pieces of flare.. that they made the Jews wear."
Back to top
View user's profile Send private message
taurus
l33t
l33t


Joined: 21 Sep 2004
Posts: 657
Location: I need to be somewhere...

PostPosted: Wed Mar 23, 2005 2:16 am    Post subject: Reply with quote

Yes, there is that option "CLOCK" in AMD64 because I am looking at it right now... :wink: The default is set to UTC so that's why you are 5 hours off!

taurus
Back to top
View user's profile Send private message
n3x
Apprentice
Apprentice


Joined: 14 Apr 2003
Posts: 247
Location: Kingston, Ontario (uni) Westport, CT (home)

PostPosted: Wed Mar 23, 2005 3:06 am    Post subject: Reply with quote

Hm, well that's very strange that mine seems to have disappeared. Oh well, at least it seems to be working right now...
Back to top
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Wed Mar 23, 2005 7:30 am    Post subject: Reply with quote

etc-update ???.
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Wed Mar 23, 2005 8:50 am    Post subject: Reply with quote

maybe you have one of latest baselayouts ( unstable )... location has changed to /etc/conf.d/clock ;)
Old conf in /etc/rc.conf still works of course !

cheers
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
n3x
Apprentice
Apprentice


Joined: 14 Apr 2003
Posts: 247
Location: Kingston, Ontario (uni) Westport, CT (home)

PostPosted: Wed Mar 23, 2005 12:51 pm    Post subject: Reply with quote

Aha - /etc/conf.d/clock seems to be the issue. However, it is set to UTC (and I assume always has been) yet my problem was only fixed when I added the line to rc.conf...
Back to top
View user's profile Send private message
Zyne
Guru
Guru


Joined: 08 Jun 2004
Posts: 334

PostPosted: Wed Mar 23, 2005 2:10 pm    Post subject: Reply with quote

a better solution (imho) would be to use a ntp-server to set your computer clock...
That's how I do it anyways ;)
works great for all my workstations, and they all have the same time...

just a tip :)
Back to top
View user's profile Send private message
timmfin
Guru
Guru


Joined: 04 Sep 2002
Posts: 336
Location: Maryland, USA

PostPosted: Wed Mar 23, 2005 4:31 pm    Post subject: Reply with quote

Are you dual-booting with windows? Windows like to keep its hardware clock as the localtime (and linux likes to keep it as UTC). So whenever I boot into windows my clock was always 5 hours off (since I'm in EST, 5 hours off of GMT).
Back to top
View user's profile Send private message
n3x
Apprentice
Apprentice


Joined: 14 Apr 2003
Posts: 247
Location: Kingston, Ontario (uni) Westport, CT (home)

PostPosted: Wed Mar 23, 2005 9:18 pm    Post subject: Reply with quote

Zyne: Yeah, I've tried ntp-date, but I just can't seem to get it to work. I suppose I should try again.

timmfin: I've noticed that in the past and know about it, but I haven't booted into windows in a loooong time.

Cheers,
james
Back to top
View user's profile Send private message
Schmokin
n00b
n00b


Joined: 21 Dec 2004
Posts: 47
Location: Salem, OR

PostPosted: Thu Mar 24, 2005 3:40 am    Post subject: Reply with quote

I always had the same problem till I set CLOCK="local" in /etc/conf.d/clock, and since I'm west coast I point /etc/localtime to /usr/share/zoneinfo/America/Los_Angeles
Back to top
View user's profile Send private message
Zyne
Guru
Guru


Joined: 08 Jun 2004
Posts: 334

PostPosted: Thu Mar 24, 2005 7:24 am    Post subject: Reply with quote

n3x wrote:
Zyne: Yeah, I've tried ntp-date, but I just can't seem to get it to work. I suppose I should try again.


it worked right immediately for me!
I'm also using the ntp-server on my windows installation, although I haven't booted to windows in a few months...
However, this avoids the problems between the 2 clocks...
Just do a quick search for ntp-client on this board. You'll find plenty of howto's to set up your ntp client...

just make sure you pick the right ntp-server. I'm using the ntp-server of my isp, so I know my time is right :)


good luck!
Back to top
View user's profile Send private message
n3x
Apprentice
Apprentice


Joined: 14 Apr 2003
Posts: 247
Location: Kingston, Ontario (uni) Westport, CT (home)

PostPosted: Thu Mar 24, 2005 1:42 pm    Post subject: Reply with quote

Zyne: Okay, thanks I did a quick search and used the guide on the wiki, and it seems to be working now.

thanks,
james
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum