Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UTC problem [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
supernov
Apprentice
Apprentice


Joined: 18 Feb 2005
Posts: 164

PostPosted: Sun Apr 17, 2005 10:56 am    Post subject: UTC problem [solved] Reply with quote

Hi guys/girls,

Sorry for yet another ntp topic, but this one is a bit strange. I've read all the manuals I could find and tried various things (even changing scripts), but I can't seem to make ntp understand that I want to be in the CET timezone instead of UTC. Time is set correct, only 2 hours behind because of the timezone.

Hope you're able to help. Here's my rc.conf:
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"


And my conf.d/ntpd:
Code:

# Options to pass to the ntpd process
# Most people should leave this line alone ...
# however, if you know what you're doing, feel free to tweak
NTPDATE_WARN="y"
NTPDATE_CMD="ntpdate"
NTPD_OPTS=""


And my servers in ntp.conf:
Code:

driftfile /var/lib/ntp/ntp.drift

server ntp1.theinternetone.net

restrict default nomodify nopeer
restrict 127.0.0.1


I've also used the "ln -sf" command to set my timezone to point to CET. However, I saw in the timezone directory, that both C6CEblabla :) and CET had a timezone-data-mark. So I deleted C6CE etc. but that didn't change anything. I notice that the timezone problem is related to the localtime variable, because the timezone is switched to UTC when I rerun the clock script.

Thanks!


Last edited by supernov on Sun Apr 17, 2005 1:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Sun Apr 17, 2005 11:00 am    Post subject: Reply with quote

don't make it harder than it has to be.

Code:
# ls /usr/share/zoneinfo/America
# rm /etc/localtime
# ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
# date


Code:
# ntpdate -b -u pool.ntp.org

_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
supernov
Apprentice
Apprentice


Joined: 18 Feb 2005
Posts: 164

PostPosted: Sun Apr 17, 2005 11:17 am    Post subject: Reply with quote

Pffff, and now it works indeed!

Very strange it's never worked before though. Perhaps that localtime directory was wrong...it was indeed a directory and not a file. Anyway, thanks!
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Sun Apr 17, 2005 12:26 pm    Post subject: Reply with quote

glad i could help. now that your problem is taken care of, please put [SOLVED] in the subject header. thx.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
supernov
Apprentice
Apprentice


Joined: 18 Feb 2005
Posts: 164

PostPosted: Sun Apr 17, 2005 1:04 pm    Post subject: Reply with quote

Would love to, but how do I do that?
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Sun Apr 17, 2005 1:29 pm    Post subject: Reply with quote

edit the first message in the thread, and change the subject.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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