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

Alexander Belopolsky report at bugs.python.org
Mon Nov 24 17:28:33 CET 2014


Alexander Belopolsky added the comment:

I was able to reproduce the problem on a Mac as follows:

$ TZ=Europe/Moscow date "+%c %z"
Mon Nov 24 19:27:51 2014 +0300
$ TZ=Europe/Moscow python3 -c "from email.utils import formatdate; print(formatdate(localtime=True))"
Mon, 24 Nov 2014 19:28:03 +0400

----------

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


More information about the Python-bugs-list mailing list