Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ntpdate and local time
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ralvy
n00b
n00b


Joined: 26 Sep 2004
Posts: 74

PostPosted: Tue Mar 01, 2005 5:46 am    Post subject: ntpdate and local time Reply with quote

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
View user's profile Send private message
jtaylor72
Apprentice
Apprentice


Joined: 01 Feb 2004
Posts: 197
Location: "the can", WA

PostPosted: Tue Mar 01, 2005 6:05 am    Post subject: Reply with quote

/etc/rc.conf

set:

Code:
CLOCK="local"
Back to top
View user's profile Send private message
ralvy
n00b
n00b


Joined: 26 Sep 2004
Posts: 74

PostPosted: Tue Mar 01, 2005 7:12 am    Post subject: Reply with quote

I didn't make all this clear. I have always had
Code:
 CLOCK="local"

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
View user's profile Send private message
nonotme
Guru
Guru


Joined: 29 Sep 2003
Posts: 356
Location: on.ca

PostPosted: Tue Mar 01, 2005 8:00 am    Post subject: Reply with quote

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
View user's profile Send private message
ralvy
n00b
n00b


Joined: 26 Sep 2004
Posts: 74

PostPosted: Tue Mar 01, 2005 3:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
iamben
Apprentice
Apprentice


Joined: 10 May 2004
Posts: 278

PostPosted: Tue Mar 01, 2005 9:08 pm    Post subject: Reply with quote

you sure you never had one? its one of the steps in the install guide
Back to top
View user's profile Send private message
ralvy
n00b
n00b


Joined: 26 Sep 2004
Posts: 74

PostPosted: Tue Mar 01, 2005 10:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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