Steven Rumbalski <[email protected]> added the comment: I think this is incorrect during daylight savings time: tzoffset = -time.timezone // 60
This should do it: isdst = time.localtime().tm_isdst tzoffset = -(time.altzone if isdst else time.timezone)//60 ---------- nosy: +srumbalski _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue7582> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
