View previous topic :: View next topic |
Author |
Message |
n3x Apprentice
Joined: 14 Apr 2003 Posts: 247 Location: Kingston, Ontario (uni) Westport, CT (home)
|
Posted: Tue Mar 22, 2005 11:20 pm Post subject: time off by five hours |
|
|
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
Thanks,
james |
|
Back to top |
|
|
acasto Apprentice
Joined: 06 Feb 2004 Posts: 236 Location: Durka-Durka-Stan
|
Posted: Tue Mar 22, 2005 11:29 pm Post subject: |
|
|
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 |
|
|
n3x Apprentice
Joined: 14 Apr 2003 Posts: 247 Location: Kingston, Ontario (uni) Westport, CT (home)
|
Posted: Tue Mar 22, 2005 11:58 pm Post subject: |
|
|
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 |
|
|
acasto Apprentice
Joined: 06 Feb 2004 Posts: 236 Location: Durka-Durka-Stan
|
Posted: Wed Mar 23, 2005 12:00 am Post subject: |
|
|
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 |
|
|
n3x Apprentice
Joined: 14 Apr 2003 Posts: 247 Location: Kingston, Ontario (uni) Westport, CT (home)
|
Posted: Wed Mar 23, 2005 12:04 am Post subject: |
|
|
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 |
|
|
acasto Apprentice
Joined: 06 Feb 2004 Posts: 236 Location: Durka-Durka-Stan
|
Posted: Wed Mar 23, 2005 12:08 am Post subject: |
|
|
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 |
|
|
taurus l33t
Joined: 21 Sep 2004 Posts: 657 Location: I need to be somewhere...
|
Posted: Wed Mar 23, 2005 2:16 am Post subject: |
|
|
Yes, there is that option "CLOCK" in AMD64 because I am looking at it right now... The default is set to UTC so that's why you are 5 hours off!
taurus |
|
Back to top |
|
|
n3x Apprentice
Joined: 14 Apr 2003 Posts: 247 Location: Kingston, Ontario (uni) Westport, CT (home)
|
Posted: Wed Mar 23, 2005 3:06 am Post subject: |
|
|
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 |
|
|
syg00 l33t
Joined: 23 Aug 2004 Posts: 907 Location: Brisbane, AUS
|
Posted: Wed Mar 23, 2005 7:30 am Post subject: |
|
|
etc-update ???. |
|
Back to top |
|
|
gringo Advocate
Joined: 27 Apr 2003 Posts: 3793
|
Posted: Wed Mar 23, 2005 8:50 am Post subject: |
|
|
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 |
|
|
n3x Apprentice
Joined: 14 Apr 2003 Posts: 247 Location: Kingston, Ontario (uni) Westport, CT (home)
|
Posted: Wed Mar 23, 2005 12:51 pm Post subject: |
|
|
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 |
|
|
Zyne Guru
Joined: 08 Jun 2004 Posts: 334
|
Posted: Wed Mar 23, 2005 2:10 pm Post subject: |
|
|
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 |
|
|
timmfin Guru
Joined: 04 Sep 2002 Posts: 336 Location: Maryland, USA
|
Posted: Wed Mar 23, 2005 4:31 pm Post subject: |
|
|
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 |
|
|
n3x Apprentice
Joined: 14 Apr 2003 Posts: 247 Location: Kingston, Ontario (uni) Westport, CT (home)
|
Posted: Wed Mar 23, 2005 9:18 pm Post subject: |
|
|
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 |
|
|
Schmokin n00b
Joined: 21 Dec 2004 Posts: 47 Location: Salem, OR
|
Posted: Thu Mar 24, 2005 3:40 am Post subject: |
|
|
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 |
|
|
Zyne Guru
Joined: 08 Jun 2004 Posts: 334
|
Posted: Thu Mar 24, 2005 7:24 am Post subject: |
|
|
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 |
|
|
n3x Apprentice
Joined: 14 Apr 2003 Posts: 247 Location: Kingston, Ontario (uni) Westport, CT (home)
|
Posted: Thu Mar 24, 2005 1:42 pm Post subject: |
|
|
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 |
|
|
|