﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35267	Correct TIME_ZONE setting reference in time zone topic.	Josh Smeaton	Josh Smeaton	"https://docs.djangoproject.com/en/4.2/topics/i18n/timezones/#postgresql

> The PostgreSQL backend stores datetimes as timestamp with time zone. In practice, this means it converts datetimes from the connection’s time zone to UTC on storage, and from UTC to the connection’s time zone on retrieval.

This wording seems to suggest that Django DateTimeField will return datetimes with the tzinfo set to `settings.TIME_ZONE`, but that's not what I observe. All data returned is in utc.

Am I mistaking the blurb on the timezone support docs?

https://github.com/django/django/blob/f5ed4306bbfd2e5543dd02cf5a22326a29253cdf/django/db/models/fields/__init__.py#L1594 defines a `to_python` which will make a datetime aware, but that's only used by the serialization framework.

I would expect a `from_db_value` to convert the returned value from `utc` to the timezone defined by settings.TIME_ZONE.
"	Cleanup/optimization	closed	Documentation	5.0	Normal	fixed	orm datetimefield timezones	Aymeric Augustin	Ready for checkin	1	0	0	0	1	0
