Five Pounds of Flax

Every culture has a burrito.

Check your Linux machines for correct DST info

Thursday, March 08, 2007posted by Michael Rothwell @ 2:48 PM

Use the zdump command, like so:
    /usr/sbin/zdump -v /etc/localtime | grep 2007
You should see lines containing "Sun Mar 11". Here's what I get on one of my FC4 servers:

/etc/localtime Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 EST isdst=0 gmtoff=-18000
/etc/localtime Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 EDT isdst=1 gmtoff=-14400
/etc/localtime Sun Nov 4 05:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 EDT isdst=1 gmtoff=-14400
/etc/localtime Sun Nov 4 06:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 EST isdst=0 gmtoff=-18000

If you see something other than Mar 11, then you still need to fix your timezone info.