System time wrong after running ntpdate because DST ignored
Posted
by
Ian Dunn
on Super User
See other posts from Super User
or by Ian Dunn
Published on 2012-03-19T22:27:39Z
Indexed on
2012/03/19
23:33 UTC
Read the original article
Hit count: 349
When I run ntpdate, my system clock displays the time as an hour behind what it should be. I know that ntpdate does everything in UTC, so I'm guessing there's a timezone setting wrong and it's ignoring Daylight Savings Time, but I can't figure it out.
Here's what I've done so far:
ln -sf /usr/share/zoneinfo/EST /etc/localtimeto set the timezone- Set
UTC=truein/etc/sysconfig/clockso that DST will be automatically applied date -s hh:mm::ssto set system clock correctlyhwclock -systohc --utcto set the hardware clock correctly
At this point date and hwclock both display the correct time.
But if I then run ntpdate 0.us.pool.ntp.org, the date output is an hour behind what it should be.
I've looked at a dozen tutorials and can't figure out what I'm doing wrong. Does anyone have any ideas?
© Super User or respective owner