Skip to content

BUG: Fix behavior of isocalendar with timezones #33551

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 1 commit into from
Apr 15, 2020

Conversation

mgmarino
Copy link
Contributor

  • If timezone is not UTC, then convert to UTC
  • This bug was found while deprecating 'week' and 'weekofyear'

- If timezone is not UTC, then convert to UTC
@mgmarino mgmarino force-pushed the fix-bug-in-isocalendar branch from 5601797 to eccc904 Compare April 14, 2020 21:53


def test_isocalendar_returns_correct_values_close_to_new_year_with_tz():
# GH 6538: Check that DatetimeIndex and its TimeStamp elements
Copy link
Member

Choose a reason for hiding this comment

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

You can just use the GH number of this PR (# GH 33551 )

Copy link
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

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

One small comment otherwise LGTM

@jreback jreback added Bug Datetime Datetime data dtype labels Apr 15, 2020
@jreback jreback added this to the 1.1 milestone Apr 15, 2020
@jreback jreback merged commit 73d6144 into pandas-dev:master Apr 15, 2020
@jreback
Copy link
Contributor

jreback commented Apr 15, 2020

thanks

CloseChoice pushed a commit to CloseChoice/pandas that referenced this pull request Apr 20, 2020
@mgmarino mgmarino deleted the fix-bug-in-isocalendar branch May 27, 2020 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants