Skip to content
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

mistake in parse example #108

Open
smachanm opened this issue May 10, 2020 · 1 comment
Open

mistake in parse example #108

smachanm opened this issue May 10, 2020 · 1 comment

Comments

@smachanm
Copy link

example shows:

>>> parse("2013-05-06")
Delorean(datetime=datetime.datetime(2013, 5, 6), timezone='UTC')

executing the example, I get:

>>> parse("2013-05-06")
Delorean(datetime=datetime.datetime(2013, 6, 5, 0, 0), timezone='UTC')

Documentation shows dayfirst=True as default, so there's nothing wrong with the code. Just the example needs fixing.

@aseelye
Copy link

aseelye commented Nov 2, 2020

Same. Adding dayfirst=False to the arguments fixed it. This is on MacOS Catalina, Python 3.9.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants