Daylight savings time 2007 affecting Linux
Daylight savings time 2007 affecting Linux
(OP)
Any have an idea if the change in the day when daylight savings start in 2007 has affects on Linux? I have found affects on Unix and Windows, but nothing Linux related. IBM says "Product impacted, details to follow".
RE: Daylight savings time 2007 affecting Linux
If you don't set TZ variable, Linux (unix) can't know about the date when daylight saving starts and stops.
On an AIX box of mine, I have TZ like this :
CODE
CET-1CEST,M3.5.0/02:00,M10.5.0/03:00
#
stops on Month 10, last saturday at 3:00
Ali
RE: Daylight savings time 2007 affecting Linux
The command:
zdump -v CST6CDT | grep 2007
(this is for U.S. Central Time, where I am. For U.S. Eastern Time, replace "CST6CDT" with "EST5EDT") will output something like:
CST6CDT Sun Mar 11 07:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 CST isdst=0 gmtoff=-21600
CST6CDT Sun Mar 11 08:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 CDT isdst=1 gmtoff=-18000
CST6CDT Sun Nov 4 06:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 CDT isdst=1 gmtoff=-18000
CST6CDT Sun Nov 4 07:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 CST isdst=0 gmtoff=-21600
This indicates my machine will "spring forward" on Sunday, March 11 and "fall back" on Sunday, November 4, which I think is correct.
On my Fedora Core 6 system, that data is contained in the "tzdata" package. If necessary (and if you have it), updating that package on your system will take care of it.
Want the best answers? Ask the best questions! TANSTAAFL!
RE: Daylight savings time 2007 affecting Linux
CODE
MST7MDT Sun Mar 11 08:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 MST isdst=0
MST7MDT Sun Mar 11 09:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 MDT isdst=1
MST7MDT Sun Nov 4 07:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 MDT isdst=1
MST7MDT Sun Nov 4 08:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 MST isdst=0
And opensuse 10.1
CODE
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
and I assume any distro that can updated.
Red Hat 9.0 Pro doesn't qualify for updates anymore. You can copy the timezone files from an updated distro and copy it to the outdated box. I did that to one of my RH 9.0 boxes using the updated timezone file from my gentoo box. I might retire the box before then but just in case I copied the file
Have Fun!