Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python] Recognize datetime.timezone.utc as UTC on conversion python->pyarrow #25989

Closed
asfimport opened this issue Sep 10, 2020 · 1 comment
Closed

Comments

@asfimport
Copy link

asfimport commented Sep 10, 2020

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:

from datetime import datetime, timezone
import pytz

print(pa.array([datetime.now(timezone.utc)]).type)
print(pa.array([datetime.now(pytz.utc)]).type)

gives

timestamp[us, tz=+00:00]
timestamp[us, tz=UTC]

Reporter: Joris Van den Bossche / @jorisvandenbossche
Assignee: Joris Van den Bossche / @jorisvandenbossche

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-9963. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Antoine Pitrou / @pitrou:
Issue resolved by pull request 8489
#8489

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants