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

akira report at bugs.python.org
Sun Apr 27 11:30:49 CEST 2014


akira added the comment:

Here's a new patch with a simplified ssl.cert_time_to_seconds()
implementation that brings strptime() back.

The behaviour is changed:

- accept both %e and %d strftime formats for days as strptime-based implementation did before
- return an integer instead of a float (input date has not fractions of a second)

I've added more tests.

Please, review.

----------
Added file: http://bugs.python.org/file35050/ssl_cert_time_to_seconds-462470859e57.patch

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


More information about the docs mailing list