myusuf3 / delorean

Delorean: Time Travel Made Easy
http://delorean.rtfd.org/
MIT License
1.84k stars 128 forks source link

mistake in parse example #108

Open smachanm opened 4 years ago

smachanm commented 4 years ago

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 commented 3 years ago

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