[ 
https://issues.apache.org/jira/browse/ARROW-14567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17488228#comment-17488228
 ] 

Joris Van den Bossche commented on ARROW-14567:
-----------------------------------------------

I agree with [~jonkeane] that IMO the least confusing display would be to use 
localized strings (with timezone offset indication, so like "1970-01-01 
02:00:00+02:00"). Adding "Z" is certainly better than the current situation, 
but it still doesn't give a quick idea about the local time that the timestamp 
actually represents. 

> [C++][Python][R] PrettyPrint ignores timezone
> ---------------------------------------------
>
>                 Key: ARROW-14567
>                 URL: https://issues.apache.org/jira/browse/ARROW-14567
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++, Python, R
>            Reporter: Alenka Frim
>            Priority: Major
>
> When printing TimestampArray in pyarrow the timezone information is ignored 
> by PrettyPrint (__str__  calls to_string() in array.pxi).
> {code:python}
> import pyarrow as pa
> a = pa.array([0], pa.timestamp('s', tz='+02:00'))
> print(a) # representation not correct?
> # <pyarrow.lib.TimestampArray object at 0x7f834c7cb9a8>
> # [
> #  1970-01-01 00:00:00
> # ]
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to