Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http_date_to_dt() should return a timezone-aware datetime #2182

Open
vytas7 opened this issue Nov 5, 2023 · 0 comments
Open

http_date_to_dt() should return a timezone-aware datetime #2182

vytas7 opened this issue Nov 5, 2023 · 0 comments

Comments

@vytas7
Copy link
Member

vytas7 commented Nov 5, 2023

In line with the upstream deprecation of utcnow() in Python 3.12, I think that we should change http_date_to_dt() to return a timezone-aware datetime. Since HTTP dates are normally in GMT, we could use our own GMT zone, or simply use UTC.

This is a breaking change of relatively low value, so unfortunately we won't be able to prioritize it for 4.0. (And we need a longer deprecation window in any case.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant