MarcoGorelli opened a new issue, #37342:
URL: https://github.com/apache/arrow/issues/37342
### Describe the bug, including details regarding any error messages,
version, and platform.
```python
In [16]: pa.array([datetime(2020, 1, 1,
tzinfo=timezone(timedelta(hours=-8)))], type=pa.timestamp('us', 'US/Pacific'))
Out[16]:
<pyarrow.lib.TimestampArray object at 0x7fb4b56b93c0>
[
2020-01-01 08:00:00.000000
]
In [17]: pa.array([datetime(2020, 1, 1,
tzinfo=timezone(timedelta(hours=-8)))], type=pa.timestamp('us', 'UTC'))
Out[17]:
<pyarrow.lib.TimestampArray object at 0x7fb4b51426e0>
[
2020-01-01 08:00:00.000000
]
In [18]: pa.array([datetime(2020, 1, 1)], type=pa.timestamp('us',
'US/Pacific'))
Out[18]:
<pyarrow.lib.TimestampArray object at 0x7fb4b5142500>
[
2020-01-01 00:00:00.000000
]
```
Note how the result doesn't depend on the time zone I put in the `type`
argument
Is this intentional? I'm not saying it's a bug or that it needs to change,
it just came up in Polars: https://github.com/pola-rs/polars/issues/10662 - I
just want to make sure that if there is any change, then we all go towards the
same direction
versions:
- python: 3.10.6
- pyarrow: 13.0.0
### Component(s)
Python
--
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]