Florent Xicluna <florent.xicl...@gmail.com> added the comment: 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 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13309> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com