Ticket #13535: mail-date-localtime.diff

File mail-date-localtime.diff, 604 bytes (added by geofft, 14 years ago)

Call formatdate with localtime=True.

  • django/core/mail/message.py

     
    150150        # accommodate that when doing comparisons.
    151151        header_names = [key.lower() for key in self.extra_headers]
    152152        if 'date' not in header_names:
    153             msg['Date'] = formatdate()
     153            msg['Date'] = formatdate(localtime=True)
    154154        if 'message-id' not in header_names:
    155155            msg['Message-ID'] = make_msgid()
    156156        for name, value in self.extra_headers.items():
Back to Top