#35240: Django doesn't set Postgres timezone to UTC when using psycopg3
-------------------------------+--------------------------------------
Reporter: Fabi | Owner: nobody
Type: Bug | Status: closed
Component: Uncategorized | Version: 4.2
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Comment (by David Sanders):
Tested on current main, seems to work as expected 🤷♂️:
{{{
>>> settings.USE_TZ
True
>>> settings.TIME_ZONE
'Australia/Sydney'
>>> pprint.pprint(settings.DATABASES['default']['TIME_ZONE'])
None
>>> connections['default'].cursor().connection.info.timezone
datetime.timezone.utc
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35240#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/0107018dcbf9af2d-1574828d-18c1-4d59-8fc8-9bffdd88c1d2-000000%40eu-central-1.amazonses.com.