The time on my server is about 19 hours behind and I cannot for the life of me figure out how to synchronize it. I did follow the steps here, and this is the output:
[root@ip-72-167-39-231 ~]# /sbin/service ntpd stop
Shutting down ntpd: [ OK ]
[root@ip-72-167-39-231 ~]# /usr/sbin/ntpdate 0.pool.ntp.org
25 Oct 08:42:32 ntpdate[22173]: adjust time server 199.4.29.166 offset 0.034126 sec
[root@ip-72-167-39-231 ~]# clock
Mon 24 Oct 2011 01:43:18 PM MST -0.344112 seconds
[root@ip-72-167-39-231 ~]# /usr/sbin/ntpdate nist1-ny.ustiming.org
25 Oct 08:44:41 ntpdate[22180]: adjust time server 64.90.182.55 offset -0.002749 sec
[root@ip-72-167-39-231 ~]# clock
Mon 24 Oct 2011 01:45:24 PM MST -0.593604 seconds
In response to suggestions in the comments:
[root@ip-72-167-39-231 ~]# ntpdate -u tick.usno.navy.mil
25 Oct 09:00:40 ntpdate[22294]: adjust time server 192.5.41.40 offset 0.111328 sec
[root@ip-72-167-39-231 ~]# clock
Mon 24 Oct 2011 02:00:46 PM MST -0.140884 seconds
[root@ip-72-167-39-231 ~]# date
Tue Oct 25 09:01:10 MST 2011
[root@ip-72-167-39-231 ~]# TZ=Z date
Tue Oct 25 16:01:20 2011
[root@ip-72-167-39-231 ~]#
Yet more...
[root@ip-72-167-39-231 zoneinfo]# ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
[root@ip-72-167-39-231 zoneinfo]# clock
Mon 24 Oct 2011 05:17:24 PM EDT -0.270220 seconds
[root@ip-72-167-39-231 zoneinfo]# export TZ=America/New_York
[root@ip-72-167-39-231 zoneinfo]# clock
Mon 24 Oct 2011 05:21:42 PM EDT -0.656424 seconds
I wouldn't care, but email that is sent right now is showing up on clients as if it was sent yesterday afternoon...
datereturn the same thing as [hw]clock? (as an aside, you don't need to shut down ntpd if you use-uwithntpdate) – DerfK Oct 25 '11 at 15:58TZ=Z date? – wfaulk Oct 25 '11 at 15:58