Skip to content

Commit

Permalink
Support AIX's TZDB location
Browse files Browse the repository at this point in the history
  • Loading branch information
ecnelises authored and djc committed Sep 28, 2022
1 parent 2068695 commit 001b19c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/offset/local/unix.rs
Expand Up @@ -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<TimeZone> {
Expand Down

0 comments on commit 001b19c

Please sign in to comment.