[issue13284] email.utils.formatdate function does not handle timezones correctly.

Mikhail I. Izmestev report at bugs.python.org
Wed Nov 2 15:27:28 CET 2011


Mikhail I. Izmestev <izmmishao5 at gmail.com> added the comment:

I have strange behavior too:

im at cgt-serv ~ $ python
Python 2.6.6 (r266:84292, Feb 28 2011, 09:01:15)
[GCC 4.3.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from email.Utils import formatdate
>>> import time
>>> time.strftime("%a, %d %b %Y %T %z")
'Wed, 02 Nov 2011 18:21:08 +0400'
>>> formatdate(localtime=True)
'Wed, 02 Nov 2011 18:21:28 +0300'
>>>

----------
nosy: +izmmisha

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


More information about the Python-bugs-list mailing list