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

akira report at bugs.python.org
Sun Feb 23 11:10:11 CET 2014


akira added the comment:

The point of the locale issue is that "notBefore", "notAfter" strings do not change if your locale changes. You don't need a new regex for each locale.

I've attached ssl_cert_time_seconds.py file that contains example cert_time_to_seconds(cert_time) implementation that fixes both the timezone and the locale issues.

----------
Added file: http://bugs.python.org/file34197/ssl_cert_time_seconds.py

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


More information about the docs mailing list