#32147: timezone error when casting a naive date in a Daylight Saving Time
Change
-------------------------------------+-------------------------------------
Reporter: WolfTammer | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 3.1
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: timezone | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* status: assigned => closed
* resolution: => invalid
* component: Utilities => Database layer (models, ORM)
Comment:
Thanks for this ticket, however Django cannot decide automatically what to
do with such dates, see
[https://docs.djangoproject.com/en/3.1/topics/i18n/timezones
/#interpretation-of-naive-datetime-objects Interpretation of naive
datetime objects]. You can handle this with `make_aware(..., is_dst=...)`.
Closing per TicketClosingReasons/UseSupportChannels.
--
Ticket URL: <https://code.djangoproject.com/ticket/32147#comment:1>
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/064.337dedfa2e7ffbc78f0bc6a824f9206b%40djangoproject.com.