http_date_to_dt()
should return a timezone-aware datetime
#2182
Labels
Milestone
http_date_to_dt()
should return a timezone-aware datetime
#2182
In line with the upstream deprecation of
utcnow()
in Python 3.12, I think that we should changehttp_date_to_dt()
to return a timezone-aware datetime. Since HTTP dates are normally in GMT, we could use our ownGMT
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.)
The text was updated successfully, but these errors were encountered: