This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author flox
Recipients flox, python-dev, rosslagerwall
Date 2011-11-01.16:40:16
SpamBayes Score 0.014401096
Marked as misclassified No
Message-id <1320165616.95.0.355704019379.issue13309@psf.upfronthosting.co.za>
In-reply-to
Content
It seems that "mktime" is buggy on Gentoo.
You can try to reset its state in some way before to retry strftime:


t = time.gmtime(time.time())
s = time.strftime('%Z', t)
print(s)

time.mktime((-1, 1, 1, 0, 0, 0, -1, -1, -1))
s = time.strftime('%Z', t)
print(s)

time.mktime((1, 1, 1, 0, 0, 0, 0, 0, -1))
s = time.strftime('%Z', t)
print(s)


I guess it could output:
SAST
LMT
SAST
History
Date User Action Args
2011-11-01 16:40:17floxsetrecipients: + flox, rosslagerwall, python-dev
2011-11-01 16:40:16floxsetmessageid: <1320165616.95.0.355704019379.issue13309@psf.upfronthosting.co.za>
2011-11-01 16:40:16floxlinkissue13309 messages
2011-11-01 16:40:16floxcreate