Open eitsupi opened 4 months ago
Does polars not have the concept of "local time zone"?
Does polars not have the concept of "local time zone"?
I think Apache Arrow only has timestamp types with / without time zone. https://github.com/apache/arrow/blob/d3ae78855c40c55c23b07e04ffe769f52d1aec30/format/Schema.fbs#L276-L283
I looked over the implementation of zone_current()
again and it is very very likely that it will return Sys.timezone()
unless:
TZ
env var is set to something else, which is rareSys.timezone()
returns a non-character, in which case it returns "UTC"
, which would be even rarerSo I think you can safely use Sys.timezone()
for now
Thank you for looking into the details! I will do so.
Created on 2024-02-29 with reprex v2.0.2
Related to #365, I want to get the time zone string but it returns an empty string
""
. Is this the intended behavior? If intended, could you please export thezone_current
function?