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

In a DatetimeIndex using a non-static timezone over a time range that crosses the DST line, the time shifts around #1778

Closed
ijmcf opened this issue Aug 17, 2012 · 5 comments

Comments

@ijmcf
Copy link

commented Aug 17, 2012

For example:

dr = pandas.date_range('03/06/2012 00:00', periods=25, freq='W-FRI', tz='US/Eastern')
print dr
<class 'pandas.tseries.index.DatetimeIndex'>
[2012-03-09 00:00:00, ..., 2012-08-24 01:00:00]
Length: 25, Freq: W-FRI, Timezone: US/Eastern

This is midnight at the start, but 1am at the end. Shouldn't it be midnight all along, regardless of DST?

@wesm

This comment has been minimized.

Copy link
Member

commented Aug 17, 2012

Yeah, it should be. Thanks for pointing it out

@wesm wesm closed this in eae588d Aug 18, 2012

@wesm

This comment has been minimized.

Copy link
Member

commented Aug 18, 2012

Fixed this one too

@ijmcf

This comment has been minimized.

Copy link
Author

commented Aug 20, 2012

I found an instance where this bug is still occurring:

pandas.date_range('2012-11-02', periods=10, tz=pytz.timezone('US/Eastern'))

<class 'pandas.tseries.index.DatetimeIndex'>
[2012-11-02 00:00:00, ..., 2012-11-10 23:00:00]
Length: 10, Freq: D, Timezone: US/Eastern

@wesm wesm reopened this Aug 29, 2012

@wesm

This comment has been minimized.

Copy link
Member

commented Aug 29, 2012

thanks, reopened the issue

@wesm

This comment has been minimized.

Copy link
Member

commented Sep 4, 2012

Fixed in git master

@wesm wesm closed this Sep 4, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.