1
0
mirror of https://github.com/django/django.git synced 2025-06-07 04:29:12 +00:00

[2.0.x] Fixed #28625 -- Distinguished DATABASES['TIME_ZONE'] from settings.TIME_ZONE.

Backport of 44f08422c872e32854216b2b30aab119ec3bb5d8 from master
This commit is contained in:
Jon Ribbens 2017-09-22 18:13:34 +01:00 committed by Tim Graham
parent 7c6590af5f
commit aff2df2427

View File

@ -625,8 +625,9 @@ default port. Not used with SQLite.
Default: ``None`` Default: ``None``
A string representing the time zone for datetimes stored in this database A string representing the time zone for datetimes stored in this database
(assuming that it doesn't support time zones) or ``None``. The same values are (assuming that it doesn't support time zones) or ``None``. This inner option of
accepted as in the general :setting:`TIME_ZONE` setting. the :setting:`DATABASES` setting accepts the same values as the general
:setting:`TIME_ZONE` setting.
This allows interacting with third-party databases that store datetimes in This allows interacting with third-party databases that store datetimes in
local time rather than UTC. To avoid issues around DST changes, you shouldn't local time rather than UTC. To avoid issues around DST changes, you shouldn't