New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dayfirst=True seems not to be honoured when trying to parse dates in format ddmmyyyy
#1163
Comments
jmartens
added a commit
to jmartens/dateutil
that referenced
this issue
Aug 17, 2021
Honour dayfirst option when parsing dates in format ddmmyyy refs dateutil#1163
jmartens
added a commit
to jmartens/dateutil
that referenced
this issue
Aug 17, 2021
Honour dayfirst option when parsing dates in format ddmmyyy refs dateutil#1163
I think I have been able to chase this down to info.dayfirst not being honoured at dateutil/src/dateutil/parser/_parser.py Lines 915 to 920 in 0cc33ad
The year seems to be taken from the first characters of the token anyhow, where I would expect that this only happens when |
For referece:
|
3 tasks
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to parse a datetime with the
ddmmyyyy
format it seems to parse differently than when dashes are used as separators, even whendayFirst
is set toTrue
:I would have expected the first result in both cases.
The text was updated successfully, but these errors were encountered: