[issue22932] email.utils.formatdate uses unreliable time.timezone constant

R. David Murray report at bugs.python.org
Tue Dec 9 15:44:14 CET 2014


R. David Murray added the comment:

That's a bug (you will note that it causes a test failure in the email test suite).  -0000 means "this date is in UTC, but that may or may not be the local timezone of the message".  +0000 means "this date really is in the UTC timezone".  utils.format_datetime uses +0000 if and only if the datetime is an aware UTC datetime.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22932>
_______________________________________


More information about the Python-bugs-list mailing list