Ticket #3554: explicit_timezone_offset.patch
File explicit_timezone_offset.patch, 774 bytes (added by , 18 years ago) |
---|
-
django/core/mail.py
3 3 from django.conf import settings 4 4 from email.MIMEText import MIMEText 5 5 from email.Header import Header 6 import smtplib, rfc822 6 from email.Utils import formatdate 7 import smtplib 7 8 import socket 8 9 import time 9 10 import random … … 65 66 msg['Subject'] = subject 66 67 msg['From'] = from_email 67 68 msg['To'] = ', '.join(recipient_list) 68 msg['Date'] = rfc822.formatdate()69 msg['Date'] = formatdate() 69 70 try: 70 71 random_bits = str(random.getrandbits(64)) 71 72 except AttributeError: # Python 2.3 doesn't have random.getrandbits().