Opened 14 years ago

Last modified 8 years ago

#12666 closed

Setting for sending email using localtime instead of UTC — at Initial Version

Reported by: net147 Owned by: nobody
Component: Core (Mail) Version: 1.1
Severity: Normal Keywords:
Cc: mmitar@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: yes UI/UX: no

Description

I would like to be able to send emails using local time in the Date header instead of UTC by default.

Changes needed (based on Django 1.1.1):

  • django/conf/global_settings.py:
    • Add "EMAIL_USE_LOCALTIME = False" (won't sent using local time by default unless you explicitly enable it)
  • django/core/mail.py:
    • Change "msgDate = formatdate()" to "msgDate = formatdate(localtime=settings.EMAIL_USE_LOCALTIME)"

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top