From 001b19c26239982b78b77bee4ba7402f21e7dcff Mon Sep 17 00:00:00 2001 From: Qiu Chaofan Date: Tue, 30 Aug 2022 14:30:42 +0800 Subject: [PATCH] Support AIX's TZDB location --- src/offset/local/unix.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/offset/local/unix.rs b/src/offset/local/unix.rs index 46845b69d4..3ca2f4a6a5 100644 --- a/src/offset/local/unix.rs +++ b/src/offset/local/unix.rs @@ -99,8 +99,11 @@ struct Cache { #[cfg(target_os = "android")] const TZDB_LOCATION: &str = " /system/usr/share/zoneinfo"; +#[cfg(target_os = "aix")] +const TZDB_LOCATION: &str = "/usr/share/lib/zoneinfo"; + #[allow(dead_code)] // keeps the cfg simpler -#[cfg(not(target_os = "android"))] +#[cfg(not(any(target_os = "android", target_os = "aix")))] const TZDB_LOCATION: &str = "/usr/share/zoneinfo"; fn fallback_timezone() -> Option {