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

2013-12-29 Thread gudge
gudge added the comment: Can you please provide some hints on how to handle http://bugs.python.org/issue19940#msg205860. The value of format_regex 1) Without locale set: re.compile('(?Pjan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\\s+(?P3[0-1]|[1-2]\\d|0[1- 9]|[1-9]| [1-9])\\s+(?P

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

2013-12-22 Thread gudge
gudge added the comment: 1) I understand I can run a whole test suite as ./python -m test -v test_abc as mentioned in http://docs.python.org/devguide/runtests.html How do I run a particluar test case, like the test I added test_cert_time_to_seconds 2) I have a added a test case

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

2013-12-21 Thread gudge
gudge added the comment: Akira, I will fix it. I will put in the patch in the same bug. -- ___ Python tracker <http://bugs.python.org/issue19940> ___ ___ Pytho

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

2013-12-19 Thread gudge
gudge added the comment: Patch is uploaded. I will also copy paste it. I have created the patch with git. Let me know if it is okay with you. If it is unacceptable I will try and create one for mercury Patch: -- diff --combined

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

2013-12-19 Thread gudge
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.

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

2013-12-19 Thread gudge
gudge added the comment: 1) Can I get a list of failures. The summary of test results which I compare on my machine. 2) - >>> import ssl >>> ssl.cert_time_to_seconds("M

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

2013-12-10 Thread gudge
gudge added the comment: Will work on this. Please assign the issue to me. Instructions before proceeding by Tim Golden(python mailing list): Having just glanced at that issue, I would point out that there's been a lot of development around the ssl module for the 3.4 release, so you defin