Show More
@@ -1937,7 +1937,8 b' def strdate(string, format, defaults=Non' | |||
|
1937 | 1937 | # elements are relative to today |
|
1938 | 1938 | usenow = True |
|
1939 | 1939 | |
|
1940 |
timetuple = time.strptime(date, |
|
|
1940 | timetuple = time.strptime(encoding.strfromlocal(date), | |
|
1941 | encoding.strfromlocal(format)) | |
|
1941 | 1942 | localunixtime = int(calendar.timegm(timetuple)) |
|
1942 | 1943 | if offset is None: |
|
1943 | 1944 | # local timezone |
General Comments 0
You need to be logged in to leave comments.
Login now