Skip to content

BUG: to_datetime(Timestamp) utc argument #24415

Closed
@mroeschke

Description

@mroeschke
In [7]: pd.to_datetime(pd.Timestamp(2018,1,1), utc=True)
Out[7]: Timestamp('2018-01-01 00:00:00')

# This should raise
In [7]: pd.to_datetime(pd.Timestamp(2018,1,1, tz='US/Pacific'), utc=True)
Out[7]: Timestamp('2018-01-01 00:00:00')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions