I'm trying to set up time sync on a CentOS 5.5 VDS but can't figure out why it won't update to the correct timezone. e.g. After manually setting the correct date and time when I run this:
date && ntpdate au.pool.ntp.org && date
I get this:
Mon Oct 17 08:58:48 EDT 2011
16 Oct 17:58:01 ntpdate[14659]: step time server 202.60.94.11 offset -54048.345159 sec
Sun Oct 16 17:58:01 EDT 2011
etc/localtime
has been replaced with a link to the Australia/Melbourne
timezone file and `/etc/sysconfig/clock' has been edited accordingly. The server has been rebooted since those changes and appears to (at long last) be using the correct timezone, so why does ntpdate appear to be ignoring it?
Incidentally, rdate
simply times out and I've yet to determine why. I also have the ntpd
service installed but have it disabled until I get this issue sorted out.
My Melbourne has EST-10EST,M10.1.0,M4.1.0/3. Yours is like the file for New_York.
I had a similar issue. I finally determined my /usr/share/zoneinfo/Australia/Melbourne file was the same as New_York.
Once I had changed it by copying a Australia Melbourne file from another server, all was fine with time again.
Simple to just do the following to reinstall tzdata
Very annoying issue but all fixed after that.
on debian-based systems, run as root:
And select your correct timezone.