Debian Stable for Casablanca 上的 TZ Database 忽略对 DST 的永久更改并添加偏移量 1

TZ Database on Debian Stable for Casablanca ignores the permanent change to DST and Adds an offset of 1

我在 Debian Stable 9(stretch)上,Africa/Casablanca Table 的最新更新的 TZ 数据库当前状态为 isdst=0 并且与 UTC 的偏移量为 +01。 来自 DST in Morocco Wiki 页面

https://en.wikipedia.org/wiki/Daylight_saving_time_in_Morocco

很明显,从 2018 年 10 月开始添加了 UTC +1:00 的永久偏移,现在永久遵守夏令时。

但在斋月期间,偏移量传统上已重置为 UTC 00:00。但是 TZ 数据库表示他们添加了 +01 的偏移量并且 isdst 设置为 1.

此问题仅适用于 Africa/Casablanca。

这似乎是 Debian Stable 的问题。任何有关解决此问题的建议都将受到赞赏

zdump -v /usr/share/zoneinfo/Africa/Casablanca | grep 2019

/usr/share/zoneinfo/Africa/Casablanca 5 月 5 日星期日 01:59:59 2019 UT = 5 月 5 日星期日 02:59:59 2019 +01 isdst=0 gmtoff=3600

/usr/share/zoneinfo/Africa/Casablanca 5 月 5 日 02:00:00 2019 UT = 5 月 5 日 02:00:00 2019 +00 isdst=1 gmtoff=0

/usr/share/zoneinfo/Africa/Casablanca Sun Jun 9 01:59:59 2019 UT = Sun Jun 9 01:59:59 2019 +00 isdst=1 gmtoff=0

/usr/share/zoneinfo/Africa/Casablanca Sun Jun 9 02:00:00 2019 UT = Sun Jun 9 03:00:00 2019 +01 isdst=0 gmtoff=3600

来自 tzdb 2018h release notes(强调我的):

Changes to future timestamps

Guess that Morocco will continue to fall back just before and spring forward just after Ramadan, the practice since 2012. (Thanks to Maamar Abdelkader.) This means Morocco will observe negative DST during Ramadan in main and vanguard formats, and in rearguard format it stays in the +00 timezone and observes ordinary DST in all months other than Ramadan. As before, extend this guesswork to the year 2037. As a consequence, Morocco is scheduled to observe three DST transitions in some Gregorian years (e.g., 2033) due to the mismatch between the Gregorian and Islamic calendars.

后来证实,摩洛哥确实如期调整​​了斋月时钟。你可以阅读 the tz discussion thread, or the article about it on timeanddate.com.

甚至您引用的维基百科文章也提到了这一点:

... An exception was made during the month of Ramadan during which clocks reverted to UTC+00:00 (standard time).