mirror of
https://github.com/apache/arrow.git
synced 2026-04-06 06:17:29 +00:00
### Rationale for this change Switch to std::chrono for MSVC to be able to use the system-provided timezone automatically on Windows. ### What changes are included in this PR? This adds `chrono_internal.h` that uses C++20 std::chrono timezone/calendar APIs on compilers with support (MSVC only for now) and falls back to vendored `date.h` otherwise. ### Are these changes tested? Partially tested locally and partially to be tested on CI. ### Are there any user-facing changes? Yes, Windows users will no longer need to install the IANA tzdb (see [instructions here](https://arrow.apache.org/docs/cpp/build_system.html#runtime-dependencies) and [here](https://arrow.apache.org/docs/python/install.html#tzdata-on-windows)). We possibly have tzdb download set up in CI too and should update it appropriately. * GitHub Issue: #48593 Authored-by: Rok Mihevc <rok@mihevc.org> Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
127 lines
3.9 KiB
YAML
127 lines
3.9 KiB
YAML