[New-bugs-announce] [issue21380] timezone support in strftime methods broken

Michael P. Soulier report at bugs.python.org
Mon Apr 28 23:21:42 CEST 2014


New submission from Michael P. Soulier:

msoulier at cappuccino:~$ python
Python 2.7.3 (default, Mar 13 2014, 11:03:55)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from datetime import datetime
>>> now = datetime.now()
>>> now.strftime("%z")
''
>>> import time
>>> time.strftime("%z", time.localtime(time.time()))
'+0000'
>>>

I think those calls should be printing the UTC offset, no?

----------
components: Extension Modules
messages: 217424
nosy: msoulier
priority: normal
severity: normal
status: open
title: timezone support in strftime methods broken
type: behavior
versions: Python 2.7

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


More information about the New-bugs-announce mailing list