[Python-bugs-list] [ python-Bugs-439436 ] time.strftime with "%z" incorrect

noreply@sourceforge.net noreply@sourceforge.net
Sun, 08 Jul 2001 03:48:50 -0700


Bugs item #439436, was opened at 2001-07-08 03:48
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=439436&group_id=5470

Category: Python Library
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: time.strftime with "%z" incorrect

Initial Comment:
Linux 2.2, glibc 2.1.3, Python 2.1

>>> import time
>>> time.strftime("%Z", time.localtime(time.time()))
'MSD'
>>> time.strftime("%z", time.localtime(time.time()))
'+0000'

While I believe the later should be:
'+0400'

At the same time:

$ date +%z
+0400


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=439436&group_id=5470