diff options
| author | Colin Davidson <colrdavidson@gmail.com> | 2024-10-21 21:58:32 -0700 |
|---|---|---|
| committer | Colin Davidson <colrdavidson@gmail.com> | 2024-10-21 21:58:32 -0700 |
| commit | d8696badb6a40e8d1a8b337e8ad3d89f9e4ab5a3 (patch) | |
| tree | 5ff697de304aa72d3bb4ae46669e4dd3eef35e30 /core/time | |
| parent | 9e00d610c87bfd5e47e7e0a620c92e1772017c5d (diff) | |
add better comment about freebsd hacks
Diffstat (limited to 'core/time')
| -rw-r--r-- | core/time/timezone/tz_unix.odin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/time/timezone/tz_unix.odin b/core/time/timezone/tz_unix.odin index 6de3eba2e..990e78d41 100644 --- a/core/time/timezone/tz_unix.odin +++ b/core/time/timezone/tz_unix.odin @@ -25,6 +25,8 @@ local_tz_name :: proc(allocator := context.allocator) -> (name: string, success: defer delete(path, allocator) // FreeBSD makes me sad. + // This is a hackaround, because FreeBSD copies rather than softlinks their local timezone file, + // *sometimes* and then stores the original name of the timezone in /var/db/zoneinfo instead if path == orig_localtime_path { data := os.read_entire_file("/var/db/zoneinfo", allocator) or_return return strings.trim_right_space(string(data)), true |