| View previous topic :: View next topic |
| Author |
Message |
graysky
Joined: 10 Dec 2003 Posts: 1754 Location: /dev/null
|
Posted: Thu Feb 08, 2007 1: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 |
_________________ KM user since R4
Last edited by graysky on Wed Feb 21, 2007 2:19 am; edited 2 times in total |
|
| Back to top |
|
 |
galaxiejer
Joined: 16 Aug 2005 Posts: 1
|
Posted: Thu Feb 15, 2007 6: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. |
|
| Back to top |
|
 |
graysky
Joined: 10 Dec 2003 Posts: 1754 Location: /dev/null
|
Posted: Fri Feb 16, 2007 5: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. _________________ KM user since R4 |
|
| Back to top |
|
 |
Pain
Joined: 19 Mar 2006 Posts: 41
|
Posted: Fri Feb 16, 2007 7:34 pm Post subject: |
|
|
This info saved me from wasting a Friday night!  |
|
| Back to top |
|
 |
Too Many Secrets
Joined: 20 Oct 2006 Posts: 847 Location: LA, CA
|
Posted: Fri Feb 16, 2007 11:15 pm Post subject: |
|
|
| Thanks! I'm now updated. |
|
| Back to top |
|
 |
bigbro
Joined: 24 Dec 2005 Posts: 400 Location: Eastern Or, United States
|
Posted: Sat Feb 17, 2007 9: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! _________________ KnoppMyth R5.5
MBE: AMD64 3400+, K8N Neo4 Plat., 1Gig, Asus Extreme N6200, 320G pata, 2x320Gsata, 750Gsata, PVR-150 Retail w/Blaster
SBE: AMD XP2000, GA 7ZMMH, 1 Gig, XFX 256M 6200, 20 Gig, PVR-150 Retail w/Blaster
SBE: AMD Dur1800, 512M, PVR500 |
|
| Back to top |
|
 |
graysky
Joined: 10 Dec 2003 Posts: 1754 Location: /dev/null
|
Posted: Sat Feb 17, 2007 11:41 am Post subject: |
|
|
Glad you both found it useful. Credit for this really goes to George. I just wrote it up as a formal howto. _________________ KM user since R4 |
|
| Back to top |
|
 |
khrusher
Joined: 13 Apr 2004 Posts: 889 Location: Groton, MA
|
Posted: Sat Feb 17, 2007 12:19 pm Post subject: |
|
|
Thanks, worked perfectly .... R5A16 here _________________ R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA |
|
| Back to top |
|
 |
quaffapint
Joined: 06 Jul 2006 Posts: 40
|
Posted: Sat Feb 17, 2007 4:54 pm Post subject: |
|
|
It's only appropriate that since 'George' caused the problem, that now 'George' fixes it .
Thanks, graysky, for the nice and simple writeup. |
|
| Back to top |
|
 |
graysky
Joined: 10 Dec 2003 Posts: 1754 Location: /dev/null
|
Posted: Mon Feb 19, 2007 1:14 pm Post subject: |
|
|
Glad to contribute as always  _________________ KM user since R4 |
|
| Back to top |
|
 |
pyranha
Joined: 11 Jan 2006 Posts: 3 Location: Michigan
|
Posted: Tue Feb 20, 2007 1: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. _________________ KnoppMyth R5C7
ASUS P4P800-E Deluxe w/ on board sound
Intel P4 3.0E Prescott 800MHz w/ 1024 Cache
1 GB DDR 400 (PC 3200)
Geforce FX5200 128MB 64-bit DDR AGP
Maxtor 250 GB Hard Drive
DVD/CDRom
pcHDTV? HD-3000 |
|
| Back to top |
|
 |
graysky
Joined: 10 Dec 2003 Posts: 1754 Location: /dev/null
|
Posted: Wed Feb 21, 2007 2:20 am Post subject: |
|
|
Thanks for the info -- I updated the guide accordingly. _________________ KM user since R4 |
|
| Back to top |
|
 |
aclose
Joined: 23 Mar 2005 Posts: 5 Location: Chicagoland
|
Posted: Sun Mar 04, 2007 10:05 am 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... |
|
| Back to top |
|
 |
Khan
Joined: 06 Mar 2005 Posts: 34
|
Posted: Mon Mar 05, 2007 7: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  |
|
| Back to top |
|
 |
graysky
Joined: 10 Dec 2003 Posts: 1754 Location: /dev/null
|
Posted: Tue Mar 06, 2007 10:14 am Post subject: |
|
|
Glad it helped you! _________________ KM user since R4 |
|
| Back to top |
|
 |
|