-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Fix unrecognized 'Z' UTC designator #8786
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
Conversation
ok, looks simple enough! cross-fingers other tests pass! |
@@ -363,7 +363,7 @@ convert_datetimestruct_local_to_utc(pandas_datetimestruct *out_dts_utc, | |||
* to be cast to the 'unit' parameter. | |||
* | |||
* 'out' gets filled with the parsed date-time. | |||
* 'out_local' gets whether returned value contains timezone. 0 for UTC, 1 for local time. | |||
* 'out_local' gets whether returned value contains timezone. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe change the comment to explain the 0/1 return
Hi, do you need me to do other modifications before merging? Let me know |
looks good. pls rebase and squash. ping when green. |
694b32c
to
0e02d5f
Compare
done! |
0e02d5f
to
149d52e
Compare
merged via c03e92f |
@broessli hmm, I think this was changed before the latest travis build. Thought it was green. Can you see what the problem is and and do a follow up PR? thanks (pls submit a new PR, can't push to this one anymore) |
Yes, sorry about that. The issue seems related to |
By the way, checking ISO 8601 I am not sure what to expect exactly with |
so it give one answer on dateutil 1.5 and a different on 2.1/2.2? you can do the test like this:
I am not sure of the defined behavior of cc @rockg ? |
Actually, testing on my machine, I always get |
hmm, I think this might have to do with the cache not updating because only the .c files were changed (and not the cython files). let me see. |
reverted for now: 6f48d4a got ahead and rebase on master and put up a new PR (close this one) |
cc @dbew any thoughts on the above? |
Nothing jumps out, I'm afraid. There were definitely differences between python 3 and python 2 when I did the original dateutil work but the issues I had were all around UTC and the implementation of the timezones, not tzlocal and parsing. Looking at the parse code in dateutil, I think it reads the timezone name and first tests if it matches the local timezone ( |
closes #8771