Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Timestamp doesn't correctly localize #2993

petergx opened this Issue · 2 comments

3 participants


In 0.10.1, Timestamp constructor seems to have an issue localizing objects.

In [19]: import datetime

In [20]:, 3, 9)
Out[20]:, 3, 9)

In [21]:, 3, 9)

In [22]: Timestamp(d, tz='US/Pacific') == Timestamp(d).tz_localize('US/Pacific')
Out[22]: False

In [23]: Timestamp(d, tz='US/Pacific')
Out[23]: <Timestamp: 2013-03-08 16:00:00-0800 PST, tz=US/Pacific>

The constructor of Timestamp accidentally does different jobs for and datetime.datetime I've solved it, and sent a pull request


PR merged, fixed in master with 2998540.

@y-p y-p closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.