Incorrect conversion from Python datetime
to np.datetime64
when timezone specified.
#5761
Labels
component: numpy.datetime64
(and timedelta64)
Here's the behavior I'm seeing, both on Ubuntu 14.04 and on OS X Mavericks using Python 2.7.8:
It's getting the offset right but for some reason off by 56 minutes. This could also be an issue in
pytz
butnumpy
seems more plausible. When I use naive timezone (tzinfo=None
implicitly), I get:So, correct conversion if we interpret
tzinfo=None
to be UTC, and my machine is on PDT, which is presumably why in both cases we are seeing-0700
for timezone.The text was updated successfully, but these errors were encountered: