-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Breaking parser - june 15, 1987 #770
Comments
This is working as-designed (because the input format isn't specific enough) but there's a workaround by just using In [7]: pendulum.parse("june 15,1987")
ParserError: Unable to parse string [june 15, 1987]
In [8]: pendulum.parse("june 15,1987", strict=False)
Out[8]: DateTime(1987, 6, 15, 0, 0, 0, tzinfo=Timezone('UTC')) |
@mattsta Thanks for the workaround. But can you help me understand what side effects |
🌟 https://pendulum.eustace.io/docs/#parsing 🌟
|
[ x ] I am on the latest Pendulum version.
[ x ] I have searched the issues of this repo and believe that this is not a duplicate.
OS version and name: Mac Sonoma 14
Pendulum version: 2.1.2
Issue
Pendulum parser is breaking with the mentioned date format -> "june 15, 1987"
Traceback
Other dateparsers like python-dateutils, dateparser are able to parse, but still there are wrong data.
Reference - dateutil/dateutil#1321
The text was updated successfully, but these errors were encountered: