Show More
@@ -107,7 +107,8 b' def parse_datetime(text):' | |||||
107 | if isinstance(text, datetime.datetime): |
|
107 | if isinstance(text, datetime.datetime): | |
108 | return text |
|
108 | return text | |
109 |
|
109 | |||
110 | text = text.strip().lower() |
|
110 | # we limit a format to no include microseconds e.g 2017-10-17t17:48:23.XXXX | |
|
111 | text = text.strip().lower()[:19] | |||
111 |
|
112 | |||
112 | input_formats = ( |
|
113 | input_formats = ( | |
113 | '%Y-%m-%d %H:%M:%S', |
|
114 | '%Y-%m-%d %H:%M:%S', |
General Comments 0
You need to be logged in to leave comments.
Login now