Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
BUG: DatetimeIndex.time incorrect in case of timezones #21267
An offshoot of #21230
From the docs:
But take this code here:
This may not be a bad thing, but if tz information is expected the docs should probably be changed?
[paste the output of
What version of pandas are you using @uds5501? I don't believe this should be OS specific, and I can confirm this on the latest release.
So it works for pandas 0.22.0, is it possible then its a bug from 22->23?
I actuallly get a different output as you: with a timezone (so changed from 0.22), but also the wrong hour (similar actually as in the top post):
so this is clearly a regression.
The fact that it is working correctly for you and not for me is strange .. What is the locale on your system? (in case it depends on that)
@jorisvandenbossche so this is actually correct
But this confusion stems from this construction bug in #15938 (I believe)