##// END OF EJS Templates
helpers: use lower format to parse dates
marcink -
r3691:41223170 new-ui
parent child Browse files
Show More
@@ -111,19 +111,19 b' def parse_datetime(text):'
111
111
112 input_formats = (
112 input_formats = (
113 '%Y-%m-%d %H:%M:%S',
113 '%Y-%m-%d %H:%M:%S',
114 '%Y-%m-%dT%H:%M:%S',
114 '%Y-%m-%dt%H:%M:%S',
115 '%Y-%m-%d %H:%M',
115 '%Y-%m-%d %H:%M',
116 '%Y-%m-%dT%H:%M',
116 '%Y-%m-%dt%H:%M',
117 '%Y-%m-%d',
117 '%Y-%m-%d',
118 '%m/%d/%Y %H:%M:%S',
118 '%m/%d/%Y %H:%M:%S',
119 '%m/%d/%YT%H:%M:%S',
119 '%m/%d/%Yt%H:%M:%S',
120 '%m/%d/%Y %H:%M',
120 '%m/%d/%Y %H:%M',
121 '%m/%d/%YT%H:%M',
121 '%m/%d/%Yt%H:%M',
122 '%m/%d/%Y',
122 '%m/%d/%Y',
123 '%m/%d/%y %H:%M:%S',
123 '%m/%d/%y %H:%M:%S',
124 '%m/%d/%yT%H:%M:%S',
124 '%m/%d/%yt%H:%M:%S',
125 '%m/%d/%y %H:%M',
125 '%m/%d/%y %H:%M',
126 '%m/%d/%yT%H:%M',
126 '%m/%d/%yt%H:%M',
127 '%m/%d/%y',
127 '%m/%d/%y',
128 )
128 )
129 for format_def in input_formats:
129 for format_def in input_formats:
General Comments 0
You need to be logged in to leave comments. Login now