Daylight savings time / 6.1 and 4.11
Matthew Seaman
m.seaman at infracaninophile.co.uk
Sat Jan 20 09:36:22 UTC 2007
hal wrote:
> 6.2-STABLE
>
> zdump -v -c 2008 MST7MDT
>
> MST7MDT Sun Mar 11 08:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 MST
> isdst=0 gmtoff=-25200
> MST7MDT Sun Mar 11 09:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 MDT
> isdst=1 gmtoff=-21600
> MST7MDT Sun Nov 4 07:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 MDT
> isdst=1 gmtoff=-21600
> MST7MDT Sun Nov 4 08:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 MST
> isdst=0 gmtoff=-25200
>
> Shows the new MST -> MDT and MDT -> MST dates
>
> zdump -v -c 2008 /etc/localtime
>
> /etc/localtime Sun Apr 1 08:59:59 2007 UTC = Sun Apr 1 01:59:59 2007
> MST isdst=0 gmtoff=-25200
> /etc/localtime Sun Apr 1 09:00:00 2007 UTC = Sun Apr 1 03:00:00 2007
> MDT isdst=1 gmtoff=-21600
> /etc/localtime Sun Oct 28 07:59:59 2007 UTC = Sun Oct 28 01:59:59 2007
> MDT isdst=1 gmtoff=-21600
> /etc/localtime Sun Oct 28 08:00:00 2007 UTC = Sun Oct 28 01:00:00 2007
> MST isdst=0 gmtoff=-25200
>
> Shows the old MST -> MDT and MDT -> MST dates
>
> What did I miss? What do I do next?
Your /etc/localtime is probably a copy of the old zoneinfo data, left
over from a previous incarnation. Just copy the updated zoneinfo data
for your local timezone (I'm assuming it is MST7MDT) over it.
cp /usr/share/zoneinfo/MST7MDT /etc/localtime
[You could make /etc/localtime a link or a symlink to the appropriate
file under /usr/share/zoneinfo, but only if /etc and /usr/share/zoneinfo
happen to be on the same filesystem (ie. on the root filesystem), which
is not the case in the default install of FreeBSD]
There is yet another copy of localtime in /var/named/etc/localtime which
you should also update in the came way if you're running named at all.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070120/2890bc5b/signature.pgp
More information about the freebsd-questions
mailing list