Re: time sync? time servers give wrong time

Ken Williams <kenw232@xxxxxxxxx> writes:

I'm in toronto. Eastern Standard time. I use netdate linux to sync my
clock. I use:

/usr/sbin/netdate -l 2 localhost

This was working fine until last week when the DST changed. Now it

It is NOT the servers. It is your /etc/localtime file. You are running a
very very old version of Linux.
Linux runs the system clock on UTC and gets UTC from the timeservers.
It then adds an appropriate amount according to the /etc/localtime file
mkdir /tmp/tz
cd /tmp/tz
tar -xzf /localation/of/tzdata2008a.tar.gz
As root
zic northamerica
cp /usr/share/zoneinfo/America/Toronto /etc/localtime
chmod a+r /etc/localtime

and now your time will be fine.

reports one hour behind. Every name server does this. For example:

localhost +0.000 Thu Mar 13 19:17:51.519 -0.669 Thu Mar 13 19:17:51.000 -0.718 Thu Mar 13 19:17:51.000
Local host firewall has best time, so not setting date
localhost +0.000 Thu Mar 13 19:17:51.718

But its 20:17 right now in EST.

How do I fix this? Is this a setting that netdate needs to accurately
specify EST? or are all these time servers screwed? where on slackware
10 can I specify EST in my /etc. Everything was fine until recently
(sunday march 9 I think).


Relevant Pages

  • Re: F8 & F9 (i386/i686): Problems with sendmail & dovecot
    ... It will run hardware clock in UTC, you just have to slap it up aside the ... but system problems with attempting it. ... Actually the XP boot on one of my old laptops still works right and doesn't mess up Linux, so I will cautiously say that you can. ...
  • Re: Time changing
    ... Unix clocks are usually set to UTC. ... > On Linux, you have a choice. ... I saw the time tool in linuxconf and changed the HW clock ... > The system reads hardware clock at boot time, ...
  • Re: time jumps ahead, although no connection to time server has been made
    ... >>switched of the time server but this behaviour still remains. ... > clock to UTC made the problem go away. ... Linux that my system clock uses UTC. ...
  • Re: [opensuse] opensuse 11.0 x64 time messed up with dual boot - SOLVED
    ... says "Hardware Clock set to UTC" and your times should then match. ... Basically, the UTC sync works, however, I do not know how often it re-syncs. ... or goes out of sync on occasion, but I do want my linux clock as accurate as possible at all times. ...
  • Re: [opensuse] opensuse 11.0 x64 time messed up with dual boot
    ... though all Linux/Unix time stamps are UTC and then converted to local time. ... Such a thing wouldn't happen in Linux, where everything works in UTC. ... why does the clock not get re-synced to the UTC at boot time? ...