You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem here is that in the i=0 step of the parsing, info.ampm(l[i + 1]) is not None and so we do two incorrect things: 1) set res.hour = 201, and 2) later overwrite that without checking if an hour already exists.
Parser will not raise exceptions If you specify wrong year "201A".
Sample code:
Output:
origin=201A-01-01T23:58:39.239769+03:00
parsed=2017-03-22T23:58:39.239769+03:00
I use python3.5 on Mac.
dateutil version="2.6.0"
The text was updated successfully, but these errors were encountered: