##// END OF EJS Templates
py3: convert date and format arguments str before passing in time.strptime...
Pulkit Goyal -
r32290:2959c3e9 default
parent child Browse files
Show More
@@ -1937,7 +1937,8 b' def strdate(string, format, defaults=Non'
1937 # elements are relative to today
1937 # elements are relative to today
1938 usenow = True
1938 usenow = True
1939
1939
1940 timetuple = time.strptime(date, format)
1940 timetuple = time.strptime(encoding.strfromlocal(date),
1941 encoding.strfromlocal(format))
1941 localunixtime = int(calendar.timegm(timetuple))
1942 localunixtime = int(calendar.timegm(timetuple))
1942 if offset is None:
1943 if offset is None:
1943 # local timezone
1944 # local timezone
General Comments 0
You need to be logged in to leave comments. Login now