View previous topic :: View next topic |
Author |
Message |
ralvy n00b
Joined: 26 Sep 2004 Posts: 74
|
Posted: Tue Mar 01, 2005 5:46 am Post subject: ntpdate and local time |
|
|
I'm not sure why this is a problem right now (didn't seem to be in the past), but now I notice that when ntpdate syncs my time, it's changed to UTC time. Where do I set things up to keep my time local? |
|
Back to top |
|
|
jtaylor72 Apprentice
Joined: 01 Feb 2004 Posts: 197 Location: "the can", WA
|
Posted: Tue Mar 01, 2005 6:05 am Post subject: |
|
|
/etc/rc.conf
set:
|
|
Back to top |
|
|
ralvy n00b
Joined: 26 Sep 2004 Posts: 74
|
Posted: Tue Mar 01, 2005 7:12 am Post subject: |
|
|
I didn't make all this clear. I have always had
in /etc/rc.conf. And I also have
Code: | America/Los_Angeles |
in /etc/timezone. But ntpdate seems to ignore this. I see no command line options to get it to honor my timezone stuff. |
|
Back to top |
|
|
nonotme Guru
Joined: 29 Sep 2003 Posts: 356 Location: on.ca
|
Posted: Tue Mar 01, 2005 8:00 am Post subject: |
|
|
ralvy wrote: | And I also have
Code: | America/Los_Angeles |
in /etc/timezone. But ntpdate seems to ignore this. I see no command line options to get it to honor my timezone stuff. |
to correctly set your time zone, you must create a symlink called /etc/localtime. try this
Code: | ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime |
_________________ Please append [Solved] to your thread if appropriate, it helps everyone. |
|
Back to top |
|
|
ralvy n00b
Joined: 26 Sep 2004 Posts: 74
|
Posted: Tue Mar 01, 2005 3:47 pm Post subject: |
|
|
After I do that, do I still need /etc/timezone?
Also, did this change recently? I never had a symlink to /etc/localtime before and it always worked. |
|
Back to top |
|
|
iamben Apprentice
Joined: 10 May 2004 Posts: 278
|
Posted: Tue Mar 01, 2005 9:08 pm Post subject: |
|
|
you sure you never had one? its one of the steps in the install guide |
|
Back to top |
|
|
ralvy n00b
Joined: 26 Sep 2004 Posts: 74
|
Posted: Tue Mar 01, 2005 10:14 pm Post subject: |
|
|
iamben wrote: | you sure you never had one? its one of the steps in the install guide |
Well, when I created that sym-link, the OS didn't complain about an existing one. And I didn't use the -f switch to force it. So I know it wasn't there. And it wasn't until the last few days that I noticed that ntpdate gave me UTC time.
I certainly don't remember ever creating that sym-link when I installed Gentoo last Sept/Oct.. |
|
Back to top |
|
|
|