[
https://issues.apache.org/jira/browse/ARROW-9963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Antoine Pitrou reassigned ARROW-9963:
-------------------------------------
Assignee: Joris Van den Bossche
> [Python] Recognize datetime.timezone.utc as UTC on conversion python->pyarrow
> -----------------------------------------------------------------------------
>
> Key: ARROW-9963
> URL: https://issues.apache.org/jira/browse/ARROW-9963
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Reporter: Joris Van den Bossche
> Assignee: Joris Van den Bossche
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.0.0
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Related to ARROW-5248, but specifically for the stdlib
> {{datetime.timezone.utc}}, I think it would be nice to "recognize" this as
> UTC. Currently it is converted to "+00:00", while for pytz this is not the
> case:
> {code}
> from datetime import datetime, timezone
> import pytz
> print(pa.array([datetime.now(timezone.utc)]).type)
> print(pa.array([datetime.now(pytz.utc)]).type)
> {code}
> gives
> {code}
> timestamp[us, tz=+00:00]
> timestamp[us, tz=UTC]
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)