Re: [Django] #35193: Range dumper assumes timezone aware datetimes.

3 views
Skip to first unread message

Django

unread,
Feb 15, 2024, 4:49:58 AMFeb 15
to django-...@googlegroups.com
#35193: Range dumper assumes timezone aware datetimes.
-------------------------------------+-------------------------------------
Reporter: Mapiarz | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: psycopg3 | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mapiarz):

Thanks Mariusz.

In the overriden dumper, is it ok to never cast to tstzrange like the
built in dumper does? I'm not sure why that is needed in the first place
and I don't want to break something with 'normal' (i.e. timezone aware)
fields.
--
Ticket URL: <https://code.djangoproject.com/ticket/35193#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages