AlenkaF commented on issue #30117:
URL: https://github.com/apache/arrow/issues/30117#issuecomment-1859910960
I created a PR for the simple version of the fix which is adding a "Z" to
the end of the string in case timezone is defined.
```python
>>> import pyarrow as pa
>>> # tz defined
>>> pa.array([0], pa.timestamp('s', tz='+02:00'))
<pyarrow.lib.TimestampArray object at 0x131399fc0>
[
1970-01-01 00:00:00Z
]
>>> # tz not defined
>>> pa.array([0], pa.timestamp('s'))
<pyarrow.lib.TimestampArray object at 0x13139a020>
[
1970-01-01 00:00:00
]
```
I haven't added any change in the type output as the timezone information is
already included:
```python
>>> a = pa.array([0], pa.timestamp('s', tz='+02:00'))
>>> a.type
TimestampType(timestamp[s, tz=+02:00])
```
or do we want info about the timezone in array object print?
--
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]