[New-bugs-announce] [issue22932] email.utils.formatdate uses unreliable time.timezone constant
Dmitry Shachnev
report at bugs.python.org
Mon Nov 24 17:17:20 CET 2014
New submission from Dmitry Shachnev:
The value of time.timezone may be wrong sometimes (see http://bugs.python.org/issue22752), so I think the email library should not use it:
$ python3 -c "from email.utils import formatdate; print(formatdate(localtime=True))"
Mon, 24 Nov 2014 19:16:32 +0400
$ date -R
Mon, 24 Nov 2014 19:16:32 +0300
Using something from datetime module may be a better solution.
----------
components: Library (Lib)
messages: 231608
nosy: belopolsky, mitya57
priority: normal
severity: normal
status: open
title: email.utils.formatdate uses unreliable time.timezone constant
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22932>
_______________________________________
More information about the New-bugs-announce
mailing list