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

BUG: Parsing offset strings with non-zero minutes was incorrect #11774

Merged
merged 1 commit into from
Dec 7, 2015

Conversation

rockg
Copy link
Contributor

@rockg rockg commented Dec 6, 2015

Closes #11708

Minutes needed to be added to the hour offset rather than subtracted.

@@ -722,6 +722,8 @@ def test_parsing_timezone_offsets(self):
'2013-01-01T08:00:00.000000000+0800',
'2012-12-31T16:00:00.000000000-0800',
'12-31-2012 23:00:00-01:00',
'2013-01-01 05:45+05:45', #GH11708
'2013-01-01 05:30+05:30', #GH11708
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is fine, but we also need a test asserting that these are the correct times when localized (e.g. like the example in the original bug report)

@jreback jreback added Bug Timezones Timezone data dtype labels Dec 6, 2015
@jreback jreback added this to the 0.18.0 milestone Dec 6, 2015
@jreback
Copy link
Contributor

jreback commented Dec 6, 2015

this does not close #11481 , correct?

@rockg
Copy link
Contributor Author

rockg commented Dec 6, 2015

Correct, that's a lot uglier.

@rockg
Copy link
Contributor Author

rockg commented Dec 6, 2015

Tests added for to_datetime and Timestamp constructor and are green.

jreback added a commit that referenced this pull request Dec 7, 2015
BUG: Parsing offset strings with non-zero minutes was incorrect
@jreback jreback merged commit ada49e1 into pandas-dev:master Dec 7, 2015
@jreback
Copy link
Contributor

jreback commented Dec 7, 2015

thank you sir!

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

Successfully merging this pull request may close these issues.

None yet

2 participants