mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #12666 -- Added EMAIL_USE_LOCALTIME setting.
When EMAIL_USE_LOCALTIME=True, send emails with a Date header in the local time zone.
This commit is contained in:
committed by
Tim Graham
parent
b9c04801d4
commit
c3495bb984
@@ -1251,6 +1251,18 @@ Subject-line prefix for email messages sent with ``django.core.mail.mail_admins`
|
||||
or ``django.core.mail.mail_managers``. You'll probably want to include the
|
||||
trailing space.
|
||||
|
||||
.. setting:: EMAIL_USE_LOCALTIME
|
||||
|
||||
``EMAIL_USE_LOCALTIME``
|
||||
-----------------------
|
||||
|
||||
.. versionadded:: 1.11
|
||||
|
||||
Default: ``False``
|
||||
|
||||
Whether to send the SMTP ``Date`` header of email messages in the local time
|
||||
zone (``True``) or in UTC (``False``).
|
||||
|
||||
.. setting:: EMAIL_USE_TLS
|
||||
|
||||
``EMAIL_USE_TLS``
|
||||
@@ -3242,6 +3254,7 @@ Email
|
||||
* :setting:`EMAIL_SSL_KEYFILE`
|
||||
* :setting:`EMAIL_SUBJECT_PREFIX`
|
||||
* :setting:`EMAIL_TIMEOUT`
|
||||
* :setting:`EMAIL_USE_LOCALTIME`
|
||||
* :setting:`EMAIL_USE_TLS`
|
||||
* :setting:`MANAGERS`
|
||||
* :setting:`SERVER_EMAIL`
|
||||
|
||||
@@ -133,7 +133,8 @@ Database backends
|
||||
Email
|
||||
~~~~~
|
||||
|
||||
* ...
|
||||
* Added the :setting:`EMAIL_USE_LOCALTIME` setting to allow sending SMTP date
|
||||
headers in the local time zone rather than in UTC.
|
||||
|
||||
File Storage
|
||||
~~~~~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user