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

Will Jones commented on ARROW-13168:
------------------------------------

I started to look at this then got busy with something else. My thought was we 
might be able to achieve setting this at runtime using {{set_install}} and 
{{reload_tzdb()}} ([See these 
lines|https://github.com/apache/arrow/blob/dea502da05363666464e5d441cc7b5428fd964c8/cpp/src/arrow/vendored/datetime/tz.h#L1307-L1308]).
 Not 100% sure this will work; there seems to be [some issue that this supports 
the text format and not some binary 
format|https://github.com/HowardHinnant/date/issues/626] (I have some more 
investigating to do).

> [C++] Timezone database configuration and access
> ------------------------------------------------
>
>                 Key: ARROW-13168
>                 URL: https://issues.apache.org/jira/browse/ARROW-13168
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>            Reporter: Rok Mihevc
>            Assignee: Will Jones
>            Priority: Major
>              Labels: timestamp
>
>  Note: currently timezone database is not available on windows so timezone 
> aware operations will fail.
> We're using tz.h library which needs an updated timezone database to 
> correctly handle timezoned timestamps. See [installation 
> instructions|https://howardhinnant.github.io/date/tz.html#Installation].
> We have the following options for getting a timezone database:
>  # local (non-windows) OS timezone database - no work required.
>  # arrow bundled folder - we could bundle the database at build time for 
> windows. Database would slowly go stale.
>  # download it from IANA Time Zone Database at runtime - tz.h gets the 
> database at runtime, but curl (and 7-zip on windows) are required.
>  # local user-provided folder - user could provide a location at buildtime. 
> Nice to have.
>  # allow runtime configuration - at runtime say: "the tzdata can be found at 
> this location"
> For more context see: 
> [ARROW-12980|https://github.com/apache/arrow/pull/10457] and [PEP 
> 615|https://www.python.org/dev/peps/pep-0615/#sources-for-time-zone-data].



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

Reply via email to