Bug 2389080
| Summary: | CET timezone is at an odd offset from UTC | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Elliott Sales de Andrade <quantum.analyst> |
| Component: | tzdata | Assignee: | Patsy Griffin <pfrankli> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 42 | CC: | mcermak, pfrankli |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-08-21 13:47:02 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2341179 | ||
|
Description
Elliott Sales de Andrade
2025-08-18 03:12:06 UTC
I'm not seeing this when using tzdata with date:
$ cat /etc/fedora-release
Fedora release 42 (Adams)
$ rpm -qa | grep tzdata
tzdata-2025b-1.fc42.noarch
$ TZ=CET date; TZ=UTC date
Wed Aug 20 05:05:09 PM CEST 2025
Wed Aug 20 03:05:09 PM UTC 2025
However, this change to tzdata may be related:
Names present only for compatibility with UNIX System V
(last released in the 1990s) have been moved to 'backward'.
These names, which for post-1970 timestamps mostly just duplicate
data of geographical names, were confusing downstream uses.
Names moved to 'backward' are now links to geographical names.
This affects behavior for TZ='EET' for some pre-1981 timestamps,
for TZ='CET' for some pre-1947 timestamps, and for TZ='WET' for
some pre-1996 timestamps. Also, TZ='MET' now behaves like
TZ='CET' and so uses the abbreviation "CET" rather than "MET".
Those needing the previous TZDB behavior, which does not match any
real-world clocks, can find the old entries in 'backzone'.
It looks like pandas uses pytz with CET, possibly in an unsupported way.
.
From the pytz docs:
Unfortunately using the tzinfo argument of the standard datetime constructors ‘’does not work’’ with pytz for many timezones.
...
It is safe for timezones without daylight saving transitions though, such as UTC:
This upstream commit may resolve the test failure but I have not tested it.
https://github.com/pandas-dev/pandas/commit/1cf98aa9ecd65764ace8f0e38cf54220f3034052
|