Puppy has an out-of-date zoneinfo for Auckland

Please post any bugs you have found
Post Reply
Message
Author
jeffrey
Posts: 168
Joined: Mon 16 Jan 2006, 04:20
Location: Christchurch, New Zealand

Puppy has an out-of-date zoneinfo for Auckland

#1 Post by jeffrey »

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: Select all

# 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: Select all

/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.
Attachments
zoneinfo.zip
(6.54 KiB) Downloaded 774 times

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#2 Post by BarryK »

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.
[url]https://bkhome.org/news/[/url]

jeffrey
Posts: 168
Joined: Mon 16 Jan 2006, 04:20
Location: Christchurch, New Zealand

#3 Post by jeffrey »

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!).

Post Reply