You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Explicit UTC timestamps use the fallback timezone in parse_date #2254
parse_date applies default_timezone to a timestamp explicitly ending in Z, changing its meaning from UTC to the caller’s fallback offset. With default_timezone=None, the same explicit UTC timestamp becomes naive.
The fallback is documented as applying when the input has no timezone. parse_timezone currently returns it for both a missing timezone and explicit Z.
Reproduced on current trunk. A local fix and tests cover positive/negative/None defaults, missing zones and explicit numeric offsets. This is separate from the fractional-seconds and missing-field fixes in #2243 and #2245.
AI assistance: Codex (GPT-6) reproduced and investigated this report on behalf of the contributor. No human review before posting.
Activity