-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
BUG/API: to_datetime preserves UTC offsets when parsing datetime strings #21822
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
ac5a3d1
BUG: to_datetime no longer converts offsets to UTC
b81a8e9
Merge remote-tracking branch 'upstream/master' into parse_tz_offsets
6bf46a8
Document and now return offset
678b337
Add some tests, start converting some existing uses of array_to_datetime
1917148
Add more tests
581a33e
Adjust test
a1bc8f9
Flake8
80042e6
Add tests confirming new behavior
7c4135e
Merge remote-tracking branch 'upstream/master' into parse_tz_offsets
0651416
Merge remote-tracking branch 'upstream/master' into parse_tz_offsets
bacb6e3
Lint
a2f4aad
adjust a test
d48f341
Ensure box object index, pass tests
7efb25c
Adjust tests
1d527ff
Adjust test
f89d6b6
Cleanup and add comments
d91c63f
address comments
1054e8b
adjust test to be closer to the original behavior
d9cdc91
Merge remote-tracking branch 'upstream/master' into parse_tz_offsets
7d04613
Add TypeError clause
031284c
Add TypeError not ValueError
749e62e
Merge remote-tracking branch 'upstream/master' into parse_tz_offsets
23cbf75
fix typo
1e6f87a
Merge remote-tracking branch 'upstream/master' into parse_tz_offsets
7539bcf
Merge remote-tracking branch 'upstream/master' into parse_tz_offsets
c1f51cd
New implimentation
db75a24
Merge remote-tracking branch 'upstream/master' into parse_tz_offsets
4733ac5
Change implimentation and add some tests
e3db735
Merge remote-tracking branch 'upstream/master' into parse_tz_offsets
2fa681f
Add missing commas
5f36c98
Merge remote-tracking branch 'upstream/master' into parse_tz_offsets
d7ff275
Change implimentation since tzoffsets cannot be hashed
4ff7cb3
Add whatsnew
8463d91
Address review
dddc6b3
Address tzlocal
cca3983
Change is to == for older dateutil compat
e441be0
Merge remote-tracking branch 'upstream/master' into parse_tz_offsets
a8a65f7
Modify example in whatsnew to display
75f9fd9
Merge remote-tracking branch 'upstream/master' into parse_tz_offsets
6052475
Add more specific errors
f916c69
Merge remote-tracking branch 'upstream/master' into parse_tz_offsets
807a251
Merge remote-tracking branch 'upstream/master' into parse_tz_offsets
1cbd9b9
Add some benchmarks and reformat tests
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Adjust tests
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
case with multiple tzs that has to get wrapped in object-dtype?
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.
That case will result in
tz_parsed = None
so this branch will not be hit.