Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Daylight savings time 2007 affecting Linux

Status
Not open for further replies.

danno74

IS-IT--Management
Nov 13, 2002
295
US
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".
 
Hi,

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:
#echo $TZ
CET-1CEST,M3.5.0/02:00,M10.5.0/03:00
#
Daylight saving starts on Month 3, last saturday at 2:00
stops on Month 10, last saturday at 3:00

Ali
 
I don't know about all distributions, but my Fedora Core 6 box is already fixed.

The command:

[tt]zdump -v CST6CDT | grep 2007[/tt]

(this is for U.S. Central Time, where I am. For U.S. Eastern Time, replace "CST6CDT" with "EST5EDT") will output something like:

[tt]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[/tt]

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!
 
Gentoo is ready
Code:
daisuke ~ # zdump -v MST7MDT | grep 2007
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:
django:~ # zdump -v MST7MDT | grep 2007
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! [afro2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top