Skip to content

BUG: date_range breaks with tz-aware start/end dates and closed intervals #12409 #12410

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

Closed
wants to merge 1 commit into from

Conversation

multiloc
Copy link
Contributor

do comparison for closed intervals on UTC basis prior to tz conversion
added tests for date_range covering case of tz-aware start/end dates with closed ranges

@jreback
Copy link
Contributor

jreback commented Feb 21, 2016

right, but can find where it was changed and add this issue number

@jreback jreback added Bug Regression Functionality that used to work in a prior pandas version Timezones Timezone data dtype and removed Bug labels Feb 21, 2016
@jreback jreback added this to the 0.18.0 milestone Feb 21, 2016
@@ -497,6 +497,25 @@ def test_range_closed(self):
self.assertTrue(expected_left.equals(left))
self.assertTrue(expected_right.equals(right))

def test_range_closed_with_tz_aware_start_end(self):
begin = Timestamp('2011/1/1', tz='US/Eastern')
Copy link
Contributor

Choose a reason for hiding this comment

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

add this issue number here

@jreback jreback changed the title BUG fix GH12409 BUG: date_range breaks with tz-aware start/end dates and closed intervals #12409 Feb 22, 2016
@jreback
Copy link
Contributor

jreback commented Feb 22, 2016

put this issue number in the whatsnew next to #11804

@jreback
Copy link
Contributor

jreback commented Feb 22, 2016

lgtm. squash; ping when ready.

@multiloc
Copy link
Contributor Author

good to go

@jreback
Copy link
Contributor

jreback commented Feb 22, 2016

can you add the test from the issue as well. I am not convinced your tests actually replicate the issue.

@multiloc
Copy link
Contributor Author

added more tests covering original issue

@jreback
Copy link
Contributor

jreback commented Feb 22, 2016

ok, looks good. ping when green.

do comparison for closed intervals on UTC basis prior to tz conversion
added tests for date_range covering case of tz-aware start/end dates with closed ranges

added issue number to test case

update whatsnew

added more tests

fixed broken unittest
@multiloc
Copy link
Contributor Author

good to go

@jreback
Copy link
Contributor

jreback commented Feb 23, 2016

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Regression Functionality that used to work in a prior pandas version Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

date_range breaks with tz-aware start/end dates and closed intervals in 0.18.0.rc1
2 participants