Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 383504 Details for
Bug 520752
sys-apps portage-2.2.12 date header in elog mail is localized
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use email.utils.formatdate instead of time.strftime
portage-2.2.12-mail-date.diff (text/plain), 902 bytes, created by
Florent Bondoux
on 2014-08-24 09:40:23 UTC
(
hide
)
Description:
Use email.utils.formatdate instead of time.strftime
Filename:
MIME Type:
Creator:
Florent Bondoux
Created:
2014-08-24 09:40:23 UTC
Size:
902 bytes
patch
obsolete
>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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 520752
: 383504