#32661: An exception should be raised when trying to save an aware datetime/time
object even when the UTC offset isn't known.
-------------------------------------+-------------------------------------
Reporter: Armin Stepanjan | Owner: Abhyudai
Type: | Status: assigned
Cleanup/optimization |
Component: Database layer | Version: 3.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: timezone, datetime, | Triage Stage: Accepted
datetimefield, timefield, models |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak):
I double checked, this issue is more tricky and `DateTimeField`s are also
affected. `tzinfo` subclasses may not specify the UTC offset (e.g.
`pytz.timezone("Europe/Paris")`), in such cases we need to also check
`tzinfo`.
--
Ticket URL: <https://code.djangoproject.com/ticket/32661#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.2685bec58c1827916a6342701a3ecfda%40djangoproject.com.