Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 24 Nov 2014, 17:27
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
Puppy has an out-of-date zoneinfo for Auckland
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
jeffrey

Joined: 16 Jan 2006
Posts: 162
Location: Christchurch, New Zealand

PostPosted: Sun 30 Mar 2008, 21:44    Post subject:  Puppy has an out-of-date zoneinfo for Auckland  

I've checked Puppy 2.17 and 3.96 and find that zoneinfo/Auckland and zoneinfo/Pacific/Auckland (respectively) are both out of date, failing to take into account that New Zealand Daylight Savings change which took effect from September 2007 (even though the Auckland file time stamp is October 2007).
zdump is a useful utility which shows the daylight saving transitions until 2038. It would be worth including it in future Puppy releases because it is quite small. Since I'm only interested in 2008 (at present) I can limit the output to this year using grep:
Code:
# zdump -v /usr/share/zoneinfo/Pacific/Auckland | grep 2008
/usr/share/zoneinfo/Pacific/Auckland  Sat Mar 15 13:59:59 2008 UTC = Sun Mar 16 02:59:59 2008 NZDT isdst=1 gmtoff=46800
/usr/share/zoneinfo/Pacific/Auckland  Sat Mar 15 14:00:00 2008 UTC = Sun Mar 16 02:00:00 2008 NZST isdst=0 gmtoff=43200
/usr/share/zoneinfo/Pacific/Auckland  Sat Oct  4 13:59:59 2008 UTC = Sun Oct  5 01:59:59 2008 NZST isdst=0 gmtoff=43200
/usr/share/zoneinfo/Pacific/Auckland  Sat Oct  4 14:00:00 2008 UTC = Sun Oct  5 03:00:00 2008 NZDT isdst=1 gmtoff=46800

This is the old Daylight Savings for NZ, changing in March and October. Since 2007 the transitions are in April and October.
So, with the updated Pacific/Auckland file the output of zdump is:
Code:
/usr/share/zoneinfo/Pacific/Auckland  Sat Apr  5 13:59:59 2008 UTC = Sun Apr  6 02:59:59 2008 NZDT isdst=1 gmtoff=46800
/usr/share/zoneinfo/Pacific/Auckland  Sat Apr  5 14:00:00 2008 UTC = Sun Apr  6 02:00:00 2008 NZST isdst=0 gmtoff=43200
/usr/share/zoneinfo/Pacific/Auckland  Sat Sep 27 13:59:59 2008 UTC = Sun Sep 28 01:59:59 2008 NZST isdst=0 gmtoff=43200
/usr/share/zoneinfo/Pacific/Auckland  Sat Sep 27 14:00:00 2008 UTC = Sun Sep 28 03:00:00 2008 NZDT isdst=1 gmtoff=46800

I obtained the zdump executable from Fedora Core 5 and the correct Auckland zoneinfo file from surfing the Net (forget exactly where - could have been zoneinfo from rpmfind.net).
To install the changes download zoneinfo.zip which contains zdump and Auckland. Extract the files using rxvt with "unzip zoneinfo.zip", move zdump to /usr/local/bin, and move Auckland to /usr/share/zoneinfo/Pacific. You may need to restart Puppy to get the timezone change to take full effect.
zoneinfo.zip
Description 
zip

 Download 
Filename  zoneinfo.zip 
Filesize  6.54 KB 
Downloaded  601 Time(s) 
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7082
Location: Perth, Western Australia

PostPosted: Mon 31 Mar 2008, 11:12    Post subject:  

yes, an interesting utility. Ok, downloaded and will get it into 4.00beta.

Daylight saving is wrong for Western Australia also. We are on an experimental daylight saving running for 3 years, then we have a referendum whether we want to keep it.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
jeffrey

Joined: 16 Jan 2006
Posts: 162
Location: Christchurch, New Zealand

PostPosted: Mon 31 Mar 2008, 17:09    Post subject:  

I find the zdump utility a little stubborn. I can only get it to work with timezone files that have been moved to /usr/share/zoneinfo, but running it against a local file, such as Perth may not work or may only produce results for 1901 and 2038. Copying that file to /usr/share/zoneinfo/Australia/Perf produces info for 2006-2009. I searched rpmfind.net for timezone and downloaded timezone-2008b-1mdv2008.0.src.rpm, then ran "rpm2cpio timezone* | cpio -ivdl" on it to extract the files, and ran zic on australasia to generate the Australia/Perth zoneinfo file. It looks like Perth doesn't have much of a future in zoneinfo's opinion. There's nothing between 2009 and 2038. Perhaps it's all part of a plot to move everyone from WA to Seeednee?
Anyway, you should be able to edit the australasia file to secure a predictable future for Perth (or Perenjori for that matter!).
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Bugs ( Submit bugs )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0717s ][ Queries: 13 (0.0265s) ][ GZIP on ]