alexandrebelloni / tzdump

2 stars 5 forks source link

fix inconsistent TZ string because of wrong index used to adjust time #9

Closed homer242 closed 1 year ago

homer242 commented 1 year ago

It seems the indexes used in lti array to know whether the transition time is standard time were wrong.

For instance, on nov 9, with America/Iqaluit timezone and tzdata-2021a, tzdump gave:


$ date Wed 09 Nov 2022 10:49:45 AM CET $ tzdump -q -p . America/Iqaluit EST5EDT,M3.2.0,M11.1.0

But that string changed if we set the clock on 1 september:


$ sudo date -s "1 SEP 2022 11:00:00" $ date Thu 01 Sep 2022 11:02:23 AM CEST $ tzdump -q -p . America/Iqaluit EST5EDT,M3.2.0/3,M11.1.0