s.davison at computer.org
2005-Nov-07 14:18 UTC
[CentOS] New Standard/Daylight time-change dates in rhel4u2 but not centos4.2?
>From a login on a machine with rhel4u2I 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
Robert
2005-Nov-07 19:06 UTC
[CentOS] New Standard/Daylight time-change dates in rhel4u2 but not centos4.2?
s.davison at 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 at mavis ~]$ date --date="Mar 25 15:00:00 UTC 2006" Sat Mar 25 09:00:00 CST 2006 [rj at 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 at 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 at centos.org> Summary : Timezone data Description : This package contains data files with rules for various timezones around the world. [rj at mavis ~]$
s.davison at computer.org
2005-Nov-07 20:00 UTC
[CentOS] New Standard/Daylight time-change dates in rhel4u2 but not centos4.2?
>-----Original Message----- >From: Aleksandar Milivojevic [mailto:alex at milivojevic.org] >Sent: Monday, November 7, 2005 03:32 PM >To: centos at centos.org >Subject: Re: [CentOS] New Standard/Daylight time-change dates in rhel4u2 but not centos4.2? > >Quoting Robert <kerplop at 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.Many thanks, that was basically the problem. It wasn't Canadian time, but it was the wrong /etc/localtime. I don't know where that /etc/localtime came from -- it's not the same as any of the files in the /usr/share/zoneinfo hierarchy. But putting US/Eastern in there did the trick. Stowe Davison
Aleksandar Milivojevic
2005-Nov-08 17:48 UTC
[CentOS] New Standard/Daylight time-change dates in rhel4u2 but not centos4.2?
Quoting s.davison at 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.
Apparently Analagous Threads
- New Standard/Daylight time-change dates in rhel4u2 butnot centos4.2?
- Re: New Standard/Daylight time-change dates in rhel4u2 butnot centos4.2?
- Re: New Standard/Daylight time-change dates in rhel4u2butnot centos4.2?
- Re: New Standard/Daylight time-change dates in rhel4u2butnot centos4.2?
- CENTOS4.2 swapon -s result ?