FW: zic leapseconds bug
Olson, Arthur David (NIH/NCI) [E]
olsona at dc37a.nci.nih.gov
Tue Jun 13 20:42:18 UTC 2006
David Robinson is not on the time zone mailing list; direct replies
appropriately.
--ado
-----Original Message-----
From: David Robinson [mailto:drtr at apache.org]
Sent: Tuesday, June 13, 2006 4:04 PM
To: Olson, Arthur David (NIH/NCI) [E]
Cc: tz at lecserver.nci.nih.gov; bww at acm.org; eggert at twinsun.com
Subject: RE: zic leapseconds bug
I think I chose an example that was rather confusing - mixing the
timezone and leapsecond transitions; apologies for that. Try this
instead.
(start with /usr/local/etc/zoneinfo having the leapsecond version of the
tzfiles)
% cat <<FOO > xlondon
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Europe/London-Test 0:00 EU GMT/BST
Rule EU 1995 only - May 21 2:00s 1:00
BST
Rule EU 1995 only - Oct 1 2:00s 0
GMT
# Note this line; 2 seconds after midnigt
Rule EU 1996 only - Jan 1 0:00:02z
1:00 BST
Rule EU 1996 only - Jan 2 2:00z 0
GMT
FOO
% zic -L leapseconds -y yearistype.sh -d /usr/local/etc/zoneinfo zlondon
% ./zdump.exe -v Europe/London-Test | fgrep 1996 Europe/London-Test Mon
Jan 1 00:00:00 1996 UTC = Mon Jan 1 00:00:00 1996 GMT isdst=0
Europe/London-Test Mon Jan 1 00:00:00 1996 UTC = Mon Jan 1 00:00:00
1996 GMT isdst=0 Europe/London-Test Mon Jan 1 00:00:01 1996 UTC = Mon
Jan 1 01:00:01 1996 BST isdst=1 Europe/London-Test Tue Jan 2 01:59:59
1996 UTC = Tue Jan 2 02:59:59 1996 BST isdst=1 Europe/London-Test Tue
Jan 2 02:00:00 1996 UTC = Tue Jan 2 02:00:00 1996 GMT isdst=0
See that the BST transition is now 1 second after midnight.
David
On Tue, 13 Jun 2006, Olson, Arthur David (NIH/NCI) [E] wrote:
>> You can't see the problem with zdump, as the transition is not
>> visible
> to it. But in Europe/London, there was a transition on 1996-01-01
> 00:00:00.
>> Here's my dump of the zoneinfo file for the transition & one row
> either side of it...
>
> Here's what I get at elsie; note that the 1995/1996 leap second
> transition does seem to be visible to zdump.
>
> --ado
>
> Script started on Tue 13 Jun 2006 01:12:41 PM EDT elsie$ cd ~/src/tz
> elsie$ make install TOPDIR=$PWD/tmp REDO=right_only >&- elsie$ ./zdump
> -v Europe/London | grep 199[56] Europe/London Sun Mar 26 00:59:59
> 1995 UTC = Sun Mar 26 00:59:59 1995 GMT isdst=0 Europe/London Sun Mar
> 26 01:00:00 1995 UTC = Sun Mar 26 02:00:00 1995 BST isdst=1
> Europe/London Sun Oct 22 00:59:59 1995 UTC = Sun Oct 22 01:59:59 1995
> BST isdst=1 Europe/London Sun Oct 22 01:00:00 1995 UTC = Sun Oct 22
> 01:00:00 1995 GMT isdst=0 Europe/London Sun Dec 31 23:59:60 1995 UTC
> = Sun Dec 31 23:59:60 1995 GMT isdst=0 Europe/London Mon Jan 1
> 00:00:00 1996 UTC = Mon Jan 1 00:00:00 1996 GMT isdst=0 Europe/London
> Sun Mar 31 00:59:59 1996 UTC = Sun Mar 31 00:59:59 1996 GMT isdst=0
> Europe/London Sun Mar 31 01:00:00 1996 UTC = Sun Mar 31 02:00:00 1996
> BST isdst=1 Europe/London Sun Oct 27 00:59:59 1996 UTC = Sun Oct 27
> 01:59:59 1996 BST isdst=1 Europe/London Sun Oct 27 01:00:00 1996 UTC
> = Sun Oct 27 01:00:00 1996 GMT isdst=0 elsie$ exit
>
> script done on Tue 13 Jun 2006 01:13:11 PM EDT
>
>
>
More information about the tz
mailing list