mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #17733 -- Discouraged setting TIME_ZONE to None when USE_TZ is True. Thanks berdario for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
5d4fb5cfea
commit
00ec03fd44
2 changed files with 5 additions and 6 deletions
|
@ -2131,8 +2131,10 @@ environment variable under the following conditions:
|
|||
:ref:`manually configuring settings
|
||||
<settings-without-django-settings-module>`, or
|
||||
|
||||
* If you specify ``TIME_ZONE = None``. This will cause Django to fall
|
||||
back to using the system time zone.
|
||||
* If you specify ``TIME_ZONE = None``. This will cause Django to fall back to
|
||||
using the system timezone. However, this is discouraged when :setting:`USE_TZ
|
||||
= True <USE_TZ>`, because it makes conversions between local time and UTC
|
||||
less reliable.
|
||||
|
||||
If Django doesn't set the ``TZ`` environment variable, it's up to you
|
||||
to ensure your processes are running in the correct environment.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue