Confusing zdump output for America/Ojinaga
I'm a bit confused regarding the output from zdump for the new America/Ojinaga zone. Here's the output for 2022: America/Ojinaga Sun Mar 13 08:59:59 2022 UT = Sun Mar 13 01:59:59 2022 MST isdst=0 gmtoff=-25200 America/Ojinaga Sun Mar 13 09:00:00 2022 UT = Sun Mar 13 03:00:00 2022 MDT isdst=1 gmtoff=-21600 America/Ojinaga Sun Oct 30 07:59:59 2022 UT = Sun Oct 30 01:59:59 2022 MDT isdst=1 gmtoff=-21600 America/Ojinaga Sun Oct 30 08:00:00 2022 UT = Sun Oct 30 03:00:00 2022 CDT isdst=1 gmtoff=-18000 America/Ojinaga Sun Nov 6 06:59:59 2022 UT = Sun Nov 6 01:59:59 2022 CDT isdst=1 gmtoff=-18000 America/Ojinaga Sun Nov 6 07:00:00 2022 UT = Sun Nov 6 01:00:00 2022 CST isdst=0 gmtoff=-21600 Note that there's no November 30 event. But based on the zone's definition I'd expect to see these events: Oct 30 - change to _CST_ Nov 30 - No change, I guess, since the change to the US rules on Nov 30 doesn't actually change the offset or isdst flag. But maybe I'm misunderstanding how to interpret the zone file definition? Cheers, Dave Rolsky http://blog.urth.org https://github.com/autarch
On 12/12/22 09:47, Dave Rolsky via tz wrote:
I'm a bit confused regarding the output from zdump for the new America/Ojinaga zone. Here's the output for 2022:
I see different output with TZDB 2022g: $ zdump -V -c 2022,2023 America/Ojinaga America/Ojinaga Sun Mar 13 08:59:59 2022 UT = Sun Mar 13 01:59:59 2022 MST isdst=0 gmtoff=-25200 America/Ojinaga Sun Mar 13 09:00:00 2022 UT = Sun Mar 13 03:00:00 2022 MDT isdst=1 gmtoff=-21600 America/Ojinaga Sun Oct 30 07:59:59 2022 UT = Sun Oct 30 01:59:59 2022 MDT isdst=1 gmtoff=-21600 America/Ojinaga Sun Oct 30 08:00:00 2022 UT = Sun Oct 30 02:00:00 2022 CST isdst=0 gmtoff=-21600
based on the zone's definition I'd expect to see these events:
Oct 30 - change to _CST_ Nov 30 - No change, I guess, since the change to the US rules on Nov 30 doesn't actually change the offset or isdst flag.
Yes, that's what I'd expect too, and it's what I observed above. Maybe you have an old Ojinaga somehow?
Actually, I think the issue was with the version of zdump I was using. Apparently it didn't work properly with the latest tz data. This is a bit weird since Ubuntu released an update with the 2022g changes, but apparently the zdump binary is part of a different package, and it hasn't been updated since April, AFAICT. Cheers, Dave Rolsky http://blog.urth.org https://github.com/autarch On Mon, Dec 12, 2022 at 2:42 PM Paul Eggert <eggert@cs.ucla.edu> wrote:
On 12/12/22 09:47, Dave Rolsky via tz wrote:
I'm a bit confused regarding the output from zdump for the new America/Ojinaga zone. Here's the output for 2022:
I see different output with TZDB 2022g:
$ zdump -V -c 2022,2023 America/Ojinaga America/Ojinaga Sun Mar 13 08:59:59 2022 UT = Sun Mar 13 01:59:59 2022 MST isdst=0 gmtoff=-25200 America/Ojinaga Sun Mar 13 09:00:00 2022 UT = Sun Mar 13 03:00:00 2022 MDT isdst=1 gmtoff=-21600 America/Ojinaga Sun Oct 30 07:59:59 2022 UT = Sun Oct 30 01:59:59 2022 MDT isdst=1 gmtoff=-21600 America/Ojinaga Sun Oct 30 08:00:00 2022 UT = Sun Oct 30 02:00:00 2022 CST isdst=0 gmtoff=-21600
based on the zone's definition I'd expect to see these events:
Oct 30 - change to _CST_ Nov 30 - No change, I guess, since the change to the US rules on Nov 30 doesn't actually change the offset or isdst flag.
Yes, that's what I'd expect too, and it's what I observed above.
Maybe you have an old Ojinaga somehow?
On Tue, 2022-12-13 at 23:23 -0600, Dave Rolsky via tz wrote:
Actually, I think the issue was with the version of zdump I was using. Apparently it didn't work properly with the latest tz data. This is a bit weird since Ubuntu released an update with the 2022g changes, but apparently the zdump binary is part of a different package, and it hasn't been updated since April, AFAICT.
What Ubuntu version are you on?
On Mon, Dec 12, 2022 at 2:42 PM Paul Eggert <eggert@cs.ucla.edu> wrote:
On 12/12/22 09:47, Dave Rolsky via tz wrote:
I'm a bit confused regarding the output from zdump for the new America/Ojinaga zone. Here's the output for 2022:
I see different output with TZDB 2022g:
$ zdump -V -c 2022,2023 America/Ojinaga America/Ojinaga Sun Mar 13 08:59:59 2022 UT = Sun Mar 13 01:59:59 2022 MST isdst=0 gmtoff=-25200 America/Ojinaga Sun Mar 13 09:00:00 2022 UT = Sun Mar 13 03:00:00 2022 MDT isdst=1 gmtoff=-21600 America/Ojinaga Sun Oct 30 07:59:59 2022 UT = Sun Oct 30 01:59:59 2022 MDT isdst=1 gmtoff=-21600 America/Ojinaga Sun Oct 30 08:00:00 2022 UT = Sun Oct 30 02:00:00 2022 CST isdst=0 gmtoff=-21600
based on the zone's definition I'd expect to see these events:
Oct 30 - change to _CST_ Nov 30 - No change, I guess, since the change to the US rules on Nov 30 doesn't actually change the offset or isdst flag.
Yes, that's what I'd expect too, and it's what I observed above.
Maybe you have an old Ojinaga somehow?
On 12/13/22 21:23, Dave Rolsky via tz wrote:
Actually, I think the issue was with the version of zdump I was using. Apparently it didn't work properly with the latest tz data. This is a bit weird since Ubuntu released an update with the 2022g changes, but apparently the zdump binary is part of a different package, and it hasn't been updated since April, AFAICT.
Very weird, since old zdump should work with new tzdata, within reason. And I don't observe the problem on an Ubuntu 20.04.5 LTS x86-64 host with current patches that include tzdata 2022g (see transcript below). So I suspect you have a corrupted copy of America/Ojinaga, or something like that. I am attaching my system's copy which you should be able to test by using its absolute file name, e.g., by running "zdump -V -c 2022,2023 /tmp/Ojinaga" if you save it into /tmp. $ grep VERSION= /etc/os-release VERSION="20.04.5 LTS (Focal Fossa)" $ dpkg-query -l tzdata | grep tzdata ii tzdata 2022g-0ubuntu0.20.04.1 all time zone and daylight-saving time data $ ls -l /usr/share/zoneinfo/America/Ojinaga -rw-r--r-- 1 root root 1524 Dec 1 04:54 /usr/share/zoneinfo/America/Ojinaga $ zdump --version zdump (Ubuntu GLIBC 2.31-0ubuntu9.9) 2.31 $ zdump -V -c 2022,2023 America/Ojinaga America/Ojinaga Sun Mar 13 08:59:59 2022 UT = Sun Mar 13 01:59:59 2022 MST isdst=0 gmtoff=-25200 America/Ojinaga Sun Mar 13 09:00:00 2022 UT = Sun Mar 13 03:00:00 2022 MDT isdst=1 gmtoff=-21600 America/Ojinaga Sun Oct 30 07:59:59 2022 UT = Sun Oct 30 01:59:59 2022 MDT isdst=1 gmtoff=-21600 America/Ojinaga Sun Oct 30 08:00:00 2022 UT = Sun Oct 30 02:00:00 2022 CST isdst=0 gmtoff=-21600
participants (3)
-
Benjamin Drung -
Dave Rolsky -
Paul Eggert