Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Mar 2007 20:03:24 +1200
From:      Jonathan Chen <jonc@chen.org.nz>
To:        Don O'Neil <lists@lizardhill.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Time changed back to old daylight savings
Message-ID:  <20070328080324.GB76147@osiris.chen.org.nz>
In-Reply-To: <000901c7710d$03be86c0$0600020a@mickey>
References:  <000901c7710d$03be86c0$0600020a@mickey>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 28, 2007 at 12:45:11AM -0700, Don O'Neil wrote:
> I'm not sure when this happened, but I noticed today that my server reverted
> back to the old daylight savings time (1 hour off).... When I run ntpdate
> and have it update it even then it shows the wrong time. 

This tends to indicate the your /etc/localtime file is wrong. The
timeservers all return UTC; the display for the date consults
/etc/localtime to display UTC time in local time.

> I haven't done anything to replace the /etc/localtime file, even tried
> running tzsetup again, but that still didn't help. 

This indicates that your zoneinfo files have not been updated
correctly.

[...]
> At the moment I've addressed the issue with a "date -v +1H".

Which definitely isn't the correct fix.

> Any reason this would happen? How do I fix it?

What does "md5 /usr/src/share/zoneinfo/northamerica" return? (I'm
assuming that you're in North America). On my 6-STABLE machine it's:

 MD5 (/usr/src/share/zoneinfo/northamerica) = 3e582e371f445a18b065eed8f775fb20

Any other result means that your should re-cvsup, and rebuild your
system again. If it is the same, make sure your zoneinfo files have
been rebuilt (check the file timestamps).

Cheers.
-- 
Jonathan Chen <jonc@chen.org.nz>                    Once is dumb luck.
                                                 Twice is coincidence.
             Three times and Somebody Is Trying To Tell You Something.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070328080324.GB76147>