You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2020/09/10 13:56:00 UTC
[jira] [Created] (ARROW-9963) [Python] Recognize
datetime.timezone.utc as UTC on conversion python->pyarrow
Joris Van den Bossche created ARROW-9963:
--------------------------------------------
Summary: [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
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)