Skip to content

Preserve leading minus for RFC 822 zero-hour offsets#162

Closed
santhreal wants to merge 2 commits into
kurtmckee:mainfrom
santhreal:fix/rfc822-negative-zero-hour-offset
Closed

Preserve leading minus for RFC 822 zero-hour offsets#162
santhreal wants to merge 2 commits into
kurtmckee:mainfrom
santhreal:fix/rfc822-negative-zero-hour-offset

Conversation

@santhreal

Copy link
Copy Markdown

Summary

RFC 822 numeric timezones like -00:30 / -0030 were parsed as +00:30 because int("-00") == 0 dropped the sign before applying minutes.

Keep the sign, matching the RFC 3339 path.

Test plan

  • pytest for -00:30 / -0030

@santhreal
santhreal requested a review from kurtmckee as a code owner July 19, 2026 05:23

@kurtmckee kurtmckee left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @santhreal,

I need to confirm that you're a human before merging, since copyrights and attribution are involved.

Let me know if you're available for a video call. Thanks!

@santhreal

Copy link
Copy Markdown
Author

No, I prefer to stay anonymous on my GitHub. Sorry about that. I will close this pr.

@santhreal santhreal closed this Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants