-
Notifications
You must be signed in to change notification settings - Fork 129
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
Documentation mismatch for parsing strings in latest version #84
Comments
On the changelog for the python-dateutil==2.5.2 they say they fixed a bug regarding dayfirst and yearfirst. Looking forward to know more about this. |
I got an error of "ValueError: month must be in 1..12" from dateutil File "/usr/local/lib/python2.7/site-packages/pynamodb/models.py", line 394, in refresh |
+1 on this |
A quick fix for this to prevent breaks would be to set dayfirst's default value to False, also it is strange that they don't deal with yearfirst flag at all and ideally it should take priority since it was the default |
I wont have time to look at this till monday, but I will fix it soon. |
Closing this as a duplicate of #87. |
Theres a bug when parsing date strings in the latest release.
In a new virtual env:
but the docs say that the output should be
Delorean(datetime=datetime.datetime(2013, 5, 6), timezone='UTC')
(which is the correct thing to do according to ISO 8601).Installing
python-dateutil==2.5.1
fixes the problem, but i'm not sure if the bug is indelorean
or on their end.The text was updated successfully, but these errors were encountered: