Currently normalization will carry over timezone information. However, this does not make sense for a precision of "day" or lower, such as week. In that context timezone does not change the value (the date April 20, 2022 is the same "day" regardless of being in UTC+5 or UTC-5). Normalization should strip the timezone in these cases.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
[Bugfix] Remove timezone information when normalizing | pywikibot/core | master | +21 -1 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T87764 Bugs related to time datatype (tracking) | |||
Resolved | BUG REPORT | RPI2026F1 | T123888 Incorrect default month and day for WbTime | ||
Resolved | Feature | RPI2026F1 | T148280 WbTime comparison is incorrect | ||
Resolved | Feature | RPI2026F1 | T325248 Implement __eq__ that does not care about timezones | ||
Resolved | BUG REPORT | RPI2026F1 | T326693 Normalization of WbTimes does not remove timezone information for precisions less than or equal to "day" |
Event Timeline
Comment Actions
Change 878222 had a related patch set uploaded (by RPI2026F1; author: RPI2026F1):
[pywikibot/core@master] [Bugfix] Remove timezone information when normalizing
Comment Actions
Change 878222 merged by jenkins-bot:
[pywikibot/core@master] [Bugfix] Remove timezone information when normalizing