AlenkaF commented on issue #31548:
URL: https://github.com/apache/arrow/issues/31548#issuecomment-1401561327
It seems this works correctly on latest master:
```python
import pyarrow as pa
import datetime
import zoneinfo
tz = zoneinfo.ZoneInfo(key='America/New_York')
dt = datetime.datetime(2013, 11, 3, 10, 3, 14, tzinfo = tz)
pa.array([dt])
# <pyarrow.lib.TimestampArray object at 0x12ca01280>
# [
# 2013-11-03 15:03:14.000000
# ]
pa.array([dt], type=pa.timestamp("us", tz="America/New_York"))
# <pyarrow.lib.TimestampArray object at 0x12ca01400>
# [
# 2013-11-03 15:03:14.000000
# ]
pa.__version__
# '11.0.0.dev477+gc84d2dabc.d20230119'
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]