[Bug 1945527] Re: Update tzdata to version 2021a-2
Brian Murray
1945527 at bugs.launchpad.net
Tue Oct 5 21:24:34 UTC 2021
bdmurray at clean-focal-amd64:~$ apt-cache policy tzdata
tzdata:
Installed: 2021a-0ubuntu0.20.04
Candidate: 2021a-2ubuntu0.20.04
Version table:
2021a-2ubuntu0.20.04 500
500 http://192.168.10.7/ubuntu focal-proposed/main amd64 Packages
500 http://192.168.10.7/ubuntu focal-proposed/main i386 Packages
*** 2021a-0ubuntu0.20.04 500
500 http://192.168.10.7/ubuntu focal-updates/main amd64 Packages
500 http://192.168.10.7/ubuntu focal-updates/main i386 Packages
500 http://192.168.10.7/ubuntu focal-security/main amd64 Packages
500 http://192.168.10.7/ubuntu focal-security/main i386 Packages
100 /var/lib/dpkg/status
2019c-3ubuntu1 500
500 http://192.168.10.7/ubuntu focal/main amd64 Packages
500 http://192.168.10.7/ubuntu focal/main i386 Packages
bdmurray at clean-focal-amd64:~$ zdump -v Pacific/Apia | grep 2021
Pacific/Apia Sat Apr 3 13:59:59 2021 UT = Sun Apr 4 03:59:59 2021 +14 isdst=1 gmtoff=50400
Pacific/Apia Sat Apr 3 14:00:00 2021 UT = Sun Apr 4 03:00:00 2021 +13 isdst=0 gmtoff=46800
Pacific/Apia Sat Sep 25 13:59:59 2021 UT = Sun Sep 26 02:59:59 2021 +13 isdst=0 gmtoff=46800
Pacific/Apia Sat Sep 25 14:00:00 2021 UT = Sun Sep 26 04:00:00 2021 +14 isdst=1 gmtoff=50400
bdmurray at clean-focal-amd64:~$ python3 -c "from datetime import datetime; from icu import ICUtzinfo, TimeZone; tz = ICUtzinfo(TimeZone.createTimeZone('Pacific/Apia')); print(str(tz.utcoffset(datetime(2021, 9, 27))))"
14:00:00
bdmurray at clean-focal-amd64:~$ apt-cache policy tzdata
tzdata:
Installed: 2021a-2ubuntu0.20.04
Candidate: 2021a-2ubuntu0.20.04
Version table:
*** 2021a-2ubuntu0.20.04 500
500 http://192.168.10.7/ubuntu focal-proposed/main amd64 Packages
500 http://192.168.10.7/ubuntu focal-proposed/main i386 Packages
100 /var/lib/dpkg/status
2021a-0ubuntu0.20.04 500
500 http://192.168.10.7/ubuntu focal-updates/main amd64 Packages
500 http://192.168.10.7/ubuntu focal-updates/main i386 Packages
500 http://192.168.10.7/ubuntu focal-security/main amd64 Packages
500 http://192.168.10.7/ubuntu focal-security/main i386 Packages
2019c-3ubuntu1 500
500 http://192.168.10.7/ubuntu focal/main amd64 Packages
500 http://192.168.10.7/ubuntu focal/main i386 Packages
bdmurray at clean-focal-amd64:~$ zdump -v Pacific/Apia | grep 2021
Pacific/Apia Sat Apr 3 13:59:59 2021 UT = Sun Apr 4 03:59:59 2021 +14 isdst=1 gmtoff=50400
Pacific/Apia Sat Apr 3 14:00:00 2021 UT = Sun Apr 4 03:00:00 2021 +13 isdst=0 gmtoff=46800
bdmurray at clean-focal-amd64:~$ python3 -c "from datetime import datetime; from icu import ICUtzinfo, TimeZone; tz = ICUtzinfo(TimeZone.createTimeZone('Pacific/Apia')); print(str(tz.utcoffset(datetime(2021, 9, 27))))"
13:00:00
And the regression check:
bdmurray at clean-focal-amd64:~$ diff <(zdump -v America/Phoenix | cut -d' ' -f2-) <(zdump -v SystemV/MST7 | cut -d' ' -f2-)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to tzdata in Ubuntu.
https://bugs.launchpad.net/bugs/1945527
Title:
Update tzdata to version 2021a-2
Status in tzdata package in Ubuntu:
Fix Released
Status in tzdata source package in Xenial:
New
Status in tzdata source package in Bionic:
Fix Committed
Status in tzdata source package in Focal:
Fix Committed
Status in tzdata source package in Hirsute:
Fix Committed
Bug description:
New upstream version affecting the following timestamp:
$region/$timezone = Pacific/Apia
Verification is done with 'zdump'. The first timezone that gets
changed in the updated package is dumped with 'zdump -v
$region/$timezone_that_changed' (this needs to be greped for in
/usr/share/zoneinfo/). [For example: 'zdump -v Pacific/Apia'.] This is
compared to the same output after the updated package got installed.
If those are different the verification is considered done.
[Test Case for all releases]
1) zdump -v Pacific/Apia | grep 2021
For releases with ICU timezone data verification is done using the following with dates before and after the change:
[Test Case for releases >= 20.04 LTS]
1) sudo apt-get install python3-icu
2) python3 -c 'from datetime import datetime; from icu import ICUtzinfo, TimeZone; tz = ICUtzinfo(TimeZone.createTimeZone('Pacific/Apia')); print(str(tz.utcoffset(datetime(2021, 9, 27))))'
Additionally, an upstream update of tzdata removed the 'old' SystemV
timezones, so we should ensure that they are kept in Ubuntu 20.04 LTS
and earlier releases. Subsequently, these should be checked for using
the following:
[Test Case for releases <= 20.04 LTS]
diff <(zdump -v America/Phoenix | cut -d' ' -f2-) <(zdump -v SystemV/MST7 | cut -d' ' -f2-)
Nothing should be returned by the above command.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tzdata/+bug/1945527/+subscriptions
More information about the foundations-bugs
mailing list