Message107477
Strangely, it also works here from the prompt:
>>> import time
>>> time.strptime('Thu, 10 Jun 2010 19:03:39 GMT', '%a, %d %b %Y %H:%M:%S GMT')
time.struct_time(tm_year=2010, tm_mon=6, tm_mday=10, tm_hour=19, tm_min=3, tm_sec=39, tm_wday=3, tm_yday=161, tm_isdst=-1)
>>> import locale
>>> locale.getlocale(locale.LC_TIME)
(None, None)
Apparently, something sets the locale before running the test. |
|
Date |
User |
Action |
Args |
2010-06-10 20:02:10 | pitrou | set | recipients:
+ pitrou, belopolsky, orsenthil |
2010-06-10 20:02:09 | pitrou | set | messageid: <1276200129.98.0.272835458624.issue8963@psf.upfronthosting.co.za> |
2010-06-10 20:02:08 | pitrou | link | issue8963 messages |
2010-06-10 20:02:08 | pitrou | create | |
|