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

Indexes created from datetimes that are tz aware but tz=None (pytz.FixedOffset()) lose tz awareness #2604

Closed
hauptmech opened this issue Dec 28, 2012 · 1 comment

Comments

@hauptmech
Copy link

commented Dec 28, 2012

The index created from datetimes with a FixedOffset tz get converted to the correct UTC time but lose their timezone awareness so that further operations with tz aware datetimes fail.

pytz.FixedOffset() timezones have tzname() return None

@ghost ghost assigned changhiskhan Dec 28, 2012

changhiskhan pushed a commit that referenced this issue Dec 28, 2012
@changhiskhan

This comment has been minimized.

Copy link
Contributor

commented Dec 28, 2012

changed in tslib.pyx:

function _get_zone will return tz if tz.zone is None (previously just returned tz.zone)

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