-
Notifications
You must be signed in to change notification settings - Fork 95
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
Django <= 3.X defaults to using ZoneInfoBackend instead of PYTZBackend #109
Comments
mcastle
changed the title
For model fields, 'use_pytz' defaults to 'None' instead of 'True' for Django <= 3.X
For model fields, use_pytz'defaults to None instead of True for Django <= 3.X
Sep 6, 2023
mcastle
changed the title
For model fields, use_pytz'defaults to None instead of True for Django <= 3.X
For model fields, use_pytz defaults to None instead of True for Django <= 3.X
Sep 6, 2023
mcastle
changed the title
For model fields, use_pytz defaults to None instead of True for Django <= 3.X
Django <= 3.X defaults to using ZoneInfoBackend
Sep 6, 2023
mcastle
changed the title
Django <= 3.X defaults to using ZoneInfoBackend
Django <= 3.X defaults to using ZoneInfoBackend instead of PYTZBackend
Sep 6, 2023
mfogel
added a commit
that referenced
this issue
Sep 7, 2023
Merged
I just merged a PR to fix this on Sorry for the oversight! |
No apologies necessary. Really useful project! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is because without explicitly setting
use_pytz=True
in a TimeZoneField,use_pytz
defaults toNone
, causingget_tz_backend
to returnZoneInfoBackend
instead of the intendedPYTZBackend
.A workaround ahead of a code fix is to explicitly set
use_pytz=True
in a TimeZoneField.The text was updated successfully, but these errors were encountered: