-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
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
Conversation
right, but can find where it was changed and add this issue number |
@@ -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') |
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.
add this issue number here
e76692e
to
024e6fd
Compare
put this issue number in the whatsnew next to #11804 |
lgtm. squash; ping when ready. |
6278351
to
a40151c
Compare
good to go |
can you add the test from the issue as well. I am not convinced your tests actually replicate the issue. |
a40151c
to
ccce839
Compare
added more tests covering original issue |
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
ccce839
to
fba0724
Compare
good to go |
thanks! |
git diff upstream/master | flake8 --diff
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