lol
at master 45 lines 1.9 kB view raw
1diff --git a/time/chrono/+freebsd.ha b/time/chrono/+freebsd.ha 2index af49080e..3dde7963 100644 3--- a/time/chrono/+freebsd.ha 4+++ b/time/chrono/+freebsd.ha 5@@ -2,8 +2,8 @@ 6 // (c) Hare authors <https://harelang.org> 7 8 def LOCALTIME_PATH: str = "/etc/localtime"; 9-def TZDB_PATH: str = "/usr/share/zoneinfo/"; 10+def TZDB_PATH: str = "@tzdata@/share/zoneinfo/"; 11 12 // The filepath of the system's "leap-seconds.list" file, which contains UTC/TAI 13 // leap second data. 14-export def UTC_LEAPSECS_PATH: str = "/var/db/ntpd.leap-seconds.list"; 15+export def UTC_LEAPSECS_PATH: str = "@tzdata@/share/zoneinfo/leap-seconds.list"; 16diff --git a/time/chrono/+linux.ha b/time/chrono/+linux.ha 17index 2756fd6f..1ea22385 100644 18--- a/time/chrono/+linux.ha 19+++ b/time/chrono/+linux.ha 20@@ -2,8 +2,8 @@ 21 // (c) Hare authors <https://harelang.org> 22 23 def LOCALTIME_PATH: str = "/etc/localtime"; 24-def TZDB_PATH: str = "/usr/share/zoneinfo/"; 25+def TZDB_PATH: str = "@tzdata@/share/zoneinfo/"; 26 27 // The filepath of the system's "leap-seconds.list" file, which contains UTC/TAI 28 // leap second data. 29-export def UTC_LEAPSECS_PATH: str = "/usr/share/zoneinfo/leap-seconds.list"; 30+export def UTC_LEAPSECS_PATH: str = "@tzdata@/share/zoneinfo/leap-seconds.list"; 31diff --git a/time/chrono/+openbsd.ha b/time/chrono/+openbsd.ha 32index 2756fd6f..1ea22385 100644 33--- a/time/chrono/+openbsd.ha 34+++ b/time/chrono/+openbsd.ha 35@@ -2,8 +2,8 @@ 36 // (c) Hare authors <https://harelang.org> 37 38 def LOCALTIME_PATH: str = "/etc/localtime"; 39-def TZDB_PATH: str = "/usr/share/zoneinfo/"; 40+def TZDB_PATH: str = "@tzdata@/share/zoneinfo/"; 41 42 // The filepath of the system's "leap-seconds.list" file, which contains UTC/TAI 43 // leap second data. 44-export def UTC_LEAPSECS_PATH: str = "/usr/share/zoneinfo/leap-seconds.list"; 45+export def UTC_LEAPSECS_PATH: str = "@tzdata@/share/zoneinfo/leap-seconds.list";