diff -ru portage-2.2.12.orig/pym/portage/mail.py portage-2.2.12/pym/portage/mail.py --- portage-2.2.12.orig/pym/portage/mail.py 2014-08-12 20:30:01.000000000 +0200 +++ portage-2.2.12/pym/portage/mail.py 2014-08-23 21:36:13.067615846 +0200 @@ -49,6 +49,7 @@ from email.header import Header from email.mime.base import MIMEBase as BaseMessage from email.mime.multipart import MIMEMultipart as MultipartMessage + from email.utils import formatdate if sys.hexversion < 0x3000000: sender = _unicode_encode(sender, @@ -91,7 +92,7 @@ # input_bytes = s.encode(input_charset, errors) #UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-9: ordinal not in range(128) mymessage["Subject"] = Header(_force_ascii_if_necessary(subject)) - mymessage["Date"] = time.strftime("%a, %d %b %Y %H:%M:%S %z") + mymessage["Date"] = formatdate(localtime=True) return mymessage