Ticket #13535: mail-date-localtime.diff
File mail-date-localtime.diff, 604 bytes (added by , 14 years ago) |
---|
-
django/core/mail/message.py
150 150 # accommodate that when doing comparisons. 151 151 header_names = [key.lower() for key in self.extra_headers] 152 152 if 'date' not in header_names: 153 msg['Date'] = formatdate( )153 msg['Date'] = formatdate(localtime=True) 154 154 if 'message-id' not in header_names: 155 155 msg['Message-ID'] = make_msgid() 156 156 for name, value in self.extra_headers.items():