[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

gudge report at bugs.python.org
Thu Dec 19 16:20:31 CET 2013


gudge added the comment:

Sorry I think I did not read msg205774 (1st comment) correctly.
It clearly says:

"cert_time_to_seconds() uses `time.mktime()` [1] to convert utc time tuple to seconds since epoch. `mktime()` works with local time. It should use `calendar.timegm()` analog instead."

So the function cert_time_to_seconds() has to be fixed?

Thanks

----------

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


More information about the Python-bugs-list mailing list