LinHES Forums
http://forum.linhes.org/

Howto: fix daylight savings time in pre-R5E50 systems
http://forum.linhes.org/viewtopic.php?f=11&t=14085
Page 1 of 4

Author:  graysky [ Thu Feb 08, 2007 3:20 pm ]
Post subject:  Howto: fix daylight savings time in pre-R5E50 systems

As the topic suggests, you only need to do this if your system is pre-R5E50 (I have an R5D1 system that needed the fix). It's all due to Congress changing the start and end times for daylight savings time (DST) as part of some energy conservation bill which is effective this year. If you're running a release of KM that older than (I think) R5E50, you might be at risk of having messed up start/stop times.

Credit for this goes to George; I'm just posting it in this section. Here is the original thread.

Test Your System
Issue this command to see when your DST will start and stop:
Code:
$ zdump -v /etc/localtime | grep 2007


Before updating my box
Code:
$ zdump -v /etc/localtime | grep 2007
/etc/localtime  Sun Apr  1 06:59:59 2007 UTC = Sun Apr  1 01:59:59 2007 EST isdst=0 gmtoff=-18000
/etc/localtime  Sun Apr  1 07:00:00 2007 UTC = Sun Apr  1 03:00:00 2007 EDT isdst=1 gmtoff=-14400
/etc/localtime  Sun Oct 28 05:59:59 2007 UTC = Sun Oct 28 01:59:59 2007 EDT isdst=1 gmtoff=-14400
/etc/localtime  Sun Oct 28 06:00:00 2007 UTC = Sun Oct 28 01:00:00 2007 EST isdst=0 gmtoff=-18000


If your system displays dates that aren't March 11 for the start and Nov 4 for the end, you're out of date.

Update Your Timezone Data
You can update by doing this:
Code:
$ wget http://debian.oregonstate.edu/debian/pool/main/t/tzdata/tzdata_2007b-1_all.deb
# dpkg --install tzdata_2007b-1_all.deb

Which should return something similar to this:
Code:
Selecting previously deselected package tzdata.
(Reading database ... 61550 files and directories currently installed.)
Unpacking tzdata (from tzdata_2007b-1_all.deb) ...
Replacing files in old package libc6 ...
Setting up tzdata (2007b-1) ...
Current default timezone: 'US/Eastern'.
Local time is now:      Thu Feb  8 16:13:09 EST 2007.
Universal Time is now:  Thu Feb  8 21:13:09 UTC 2007.
Run 'tzconfig' if you wish to change it.


Test Your System Again
After the update, issue the zdump like you did before to see when your DST will start and stop:
Code:
$ zdump -v /etc/localtime | grep 2007
/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

Author:  galaxiejer [ Thu Feb 15, 2007 8:07 pm ]
Post subject: 

Thank you! This saved me hours of both trying to figure out if R5D1 was already up to date as well as how to patch it.

It would be kinda cool if this was a prominent post around here as this likely affects quite a few people.

Author:  graysky [ Fri Feb 16, 2007 7:24 pm ]
Post subject: 

Dunno what the breakdown is on users and versions of KM... I suspect most are up-to-date and this issue is non-existent on the current release.

Author:  Pain [ Fri Feb 16, 2007 9:34 pm ]
Post subject: 

This info saved me from wasting a Friday night! 8)

Author:  Too Many Secrets [ Sat Feb 17, 2007 1:15 am ]
Post subject: 

Thanks! I'm now updated.

Author:  bigbro [ Sat Feb 17, 2007 11:30 am ]
Post subject: 

Thanks for the very straightforward steps.

I had found how to do it, but hadn't taken the time to decipher exactly what I needed.

This worked!

Good Job!

Author:  graysky [ Sat Feb 17, 2007 1:41 pm ]
Post subject: 

Glad you both found it useful. Credit for this really goes to George. I just wrote it up as a formal howto.

Author:  khrusher [ Sat Feb 17, 2007 2:19 pm ]
Post subject: 

Thanks, worked perfectly .... R5A16 here

Author:  quaffapint [ Sat Feb 17, 2007 6:54 pm ]
Post subject: 

It's only appropriate that since 'George' caused the problem, that now 'George' fixes it :wink: .

Thanks, graysky, for the nice and simple writeup.

Author:  graysky [ Mon Feb 19, 2007 3:14 pm ]
Post subject: 

Glad to contribute as always :)

Author:  pyranha [ Tue Feb 20, 2007 3:16 pm ]
Post subject: 

Thanks for the great instructions but it looks like the tzdata_2007a-3_all.deb file is no longer up on the site. Tried the tzdata_2007b-1_all.deb instead and it seemed to work just fine.

Author:  graysky [ Wed Feb 21, 2007 4:20 am ]
Post subject: 

Thanks for the info -- I updated the guide accordingly.

Author:  aclose [ Sun Mar 04, 2007 12:05 pm ]
Post subject:  thank you

nice to know i'm now DST updated a week before it goes into effect. :)
thanks for the howto.
now i really need to look into upgrading to the latest R5 release...

Author:  Khan [ Mon Mar 05, 2007 9:09 pm ]
Post subject:  wh00t!

graysky and George,
Thanks a ton for this quick and easy update to the DST mess. I'm just not ready to upgrade to R5E50 yet :P

Author:  graysky [ Tue Mar 06, 2007 12:14 pm ]
Post subject: 

Glad it helped you!

Page 1 of 4 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/