[tz] 回复: 回复: zoneinfo generating issues
Ian Abbott
abbotti at mev.co.uk
Sat Mar 6 15:15:02 UTC 2021
On 06/03/2021 00:23, Michael H Deckers wrote:
>
> On 2021-03-05 20:29, Ian Abbott via tz wrote:
>
>> The problem seems to be related to the use of leapseconds.
>>
>> # ./main -l "2022-11-01 00:00:00" -path /usr/share/zoneinfo -tz
>> America/Adak
>> UTC: 2022-11-01 09:00:00 +0000 UTC
>> # ./main -l "2022-11-01 00:00:00" -path /usr/share/zoneinfo/right -tz
>> America/Adak
>> UTC: 2022-11-01 10:00:00 +0000 UTC
>
>
> Shouldn't you compare
> # ./main -l "2022-11-01 00:00:00" -path /usr/share/zoneinfo
> -tz America/Adak
> with
> # ./main -l "2022-11-01 00:00:27" -path
> /usr/share/zoneinfo/right -tz America/Adak?
Probably. On the problematic container, that shows a UTC time of
10:00:27, but on my Debian testing machines it shows a UTC time of 09:00:27.
There is something very dodgy about the installation of the "/right/"
zone files in this container (based on x86_64 Alpine Linux 3.13, with
its tzdata2021a-r0 package). None of the DST transitions after 2021
seem to be working:
# zdump -c 2021,2023 -i /usr/share/zoneinfo/right/Pacific/Fiji
TZ="/usr/share/zoneinfo/right/Pacific/Fiji"
- - +125933 "+13" 1
2021-01-17 02 +115933 "+12"
2021-11-14 03 +125933 "+13" 1
Compare with the normal zone files:
# zdump -c 2021,2023 -i /usr/share/zoneinfo/Pacific/Fiji
TZ="/usr/share/zoneinfo/Pacific/Fiji"
- - +13 1
2021-01-17 02 +12
2021-11-14 03 +13 1
2022-01-16 02 +12
2022-11-13 03 +13 1
I've attached the "right" and "normal" versions of the Fiji zoneinfo
files as "right.Pacific.Fiji" and "Pacific.Fiji" respectively.
Some metadata differences between the files:
$ file Pacific.Fiji right.Pacific.Fiji
Pacific.Fiji: timezone data, version 3, no gmt time flags, no std
time flags, no leap seconds, 64 transition times, 3 abbreviation chars
right.Pacific.Fiji: timezone data, version 2, no gmt time flags, no std
time flags, 27 leap seconds, 31 transition times, 3 abbreviation chars
Also, right.Pacific.Fiji has no TZ string on the end.
--
-=( Ian Abbott <abbotti at mev.co.uk> || MEV Ltd. is a company )=-
-=( registered in England & Wales. Regd. number: 02862268. )=-
-=( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=-
-=( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || www.mev.co.uk )=-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Pacific.Fiji
Type: application/octet-stream
Size: 1077 bytes
Desc: not available
URL: <http://mm.icann.org/pipermail/tz/attachments/20210306/914eb983/Pacific.Fiji>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: right.Pacific.Fiji
Type: application/octet-stream
Size: 1124 bytes
Desc: not available
URL: <http://mm.icann.org/pipermail/tz/attachments/20210306/914eb983/right.Pacific.Fiji>
More information about the tz
mailing list