[
https://issues.apache.org/jira/browse/ARROW-9963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Antoine Pitrou resolved ARROW-9963.
-----------------------------------
Fix Version/s: 3.0.0
Resolution: Fixed
Issue resolved by pull request 8489
[https://github.com/apache/arrow/pull/8489]
> [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
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.0.0
>
> Time Spent: 50m
> 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)