From a login on a machine with rhel4u2
I can execute the following commands and get the indicated output:
date --date="Mar 25 15:00:00 UTC 2006" Sat Mar 25 10:00:00 EST 2006
date --date="Mar 25 15:00:00 UTC 2007" Sun Mar 25 11:00:00 EDT 2007
As you can see, the output differs for 2006 and 2007. That indicates that rhel4u2 includes changes required by the "Energy Policy Act of 2005," which mandates new dates for transition between Standard Time and Daylight Saving Time starting in 2007.
If I do the same thing on a machine with "CentOS release 4.2 (Final)", I get the following output:
date --date="Mar 25 15:00:00 UTC 2006" Sat Mar 25 10:00:00 EST 2006
date --date="Mar 25 15:00:00 UTC 2007" Sun Mar 25 10:00:00 EST 2007
So it looks as if CentOS4.2 does not yet have that change.
Is that correct? Or is there perhaps some installation parameter that I have missed in installing CentOS4.2?
Thanks for any info.
Stowe Davison
s.davison@computer.org wrote:
From a login on a machine with rhel4u2
I can execute the following commands and get the indicated output:
date --date="Mar 25 15:00:00 UTC 2006" Sat Mar 25 10:00:00 EST 2006
date --date="Mar 25 15:00:00 UTC 2007" Sun Mar 25 11:00:00 EDT 2007
As you can see, the output differs for 2006 and 2007. That indicates that rhel4u2 includes changes required by the "Energy Policy Act of 2005," which mandates new dates for transition between Standard Time and Daylight Saving Time starting in 2007.
If I do the same thing on a machine with "CentOS release 4.2 (Final)", I get the following output:
date --date="Mar 25 15:00:00 UTC 2006" Sat Mar 25 10:00:00 EST 2006
date --date="Mar 25 15:00:00 UTC 2007" Sun Mar 25 10:00:00 EST 2007
So it looks as if CentOS4.2 does not yet have that change.
Is that correct? Or is there perhaps some installation parameter that I have missed in installing CentOS4.2?
Thanks for any info.
Stowe Davison
Works fine in the US Central time zone:
[rj@mavis ~]$ date --date="Mar 25 15:00:00 UTC 2006" Sat Mar 25 09:00:00 CST 2006 [rj@mavis ~]$ date --date="Mar 25 15:00:00 UTC 2007" Sun Mar 25 10:00:00 CDT 2007
Do you have tzdata-2005m-1.EL4 installed?
[rj@mavis ~]$ rpm -qi tzdata Name : tzdata Relocations: (not relocatable) Version : 2005m Vendor: CentOS Release : 1.EL4 Build Date: Fri 07 Oct 2005 06:03:09 AM CDT Install Date: Wed 19 Oct 2005 11:56:56 AM CDT Build Host: x8664-build.home.local Group : System Environment/Base Source RPM: tzdata-2005m-1.EL4.src.rpm Size : 655994 License: GPL Signature : DSA/SHA1, Fri 07 Oct 2005 08:48:38 AM CDT, Key ID a53d0bab443e1821 Packager : Johnny Hughes johnny@centos.org Summary : Timezone data Description : This package contains data files with rules for various timezones around the world. [rj@mavis ~]$
Quoting Robert kerplop@sbcglobal.net:
Works fine in the US Central time zone:
Maybe his CentOS machine is setup to use *Canadian* time zone file (in his case, it was Eastern). As a quick test, I'd suggest doing:
$ diff /etc/localtime /usr/share/zoneinfo/Canada/Eastern $ diff /etc/localtime /usr/share/zoneinfo/US/Eastern
(or "Central", if local time zone is standard central time).
If he's on Canadian time, just copy the appropriate file from US subdirectory over /etc/localtime to get back to US time. Those darn politicians, there should be a law to put into jail for life any politician who even thinks about proposing any artificial time changes, with addition that they should write on the wall a hundred time each day "street lights will be on same amount of time no matter when or by how much the clock is moved"...
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
Aleksandar Milivojevic alex@milivojevic.org wrote:
Those darn politicians, there should be a law to put into jail for life any politician who even thinks about proposing any artificial time changes,
While my Libertarian ideals agree with you on the fact that politicians live to legislate, but statemen do not, asking for such jail time for doing such would require yet another law. ;->
Seriously now, GMT everything. I have always GMT'd the RTC -- especially with the common "double jump" that Windows used to pull on me (until they fixed that). But I started GMT'ing all systems over the last few years and have been running things according to GMT time.
I only setup locale on an individual user-base now. That minimizes such legislation non-sense (among other things).
Quoting s.davison@computer.org:
As you can see, the output differs for 2006 and 2007. That indicates that rhel4u2 includes changes required by the "Energy Policy Act of 2005," which mandates new dates for transition between Standard Time and Daylight Saving Time starting in 2007.
[snip]
So it looks as if CentOS4.2 does not yet have that change.
Also, check this bug report. It relates directly to /etc/localtime not updated when tzdata package is updated, which is most likely exactly the problem that you have. It seems Red Hat closed the issue with wontfix. Mental note, manually update /etc/localtime after tzdata package is updated.
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=107507
I also want to take opportunity to apologize for that personal and totally off topic comment at the end of my last reply that flared way too many responses.
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.