/etc/localtime is often a symlink, but may be a TZif file, see tzset(3).
Parse the TZif when /etc/localtime is a file.
Signed-off-by: Antero Mejr <antero@mailbox.org>
---
time/chrono/timezone.ha | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/time/chrono/timezone.ha b/time/chrono/timezone.ha
index 52615b35..534338d2 100644
--- a/time/chrono/timezone.ha+++ b/time/chrono/timezone.ha
@@ -229,7 +229,7 @@ let TZ_LOCAL: timezone = timezone {
case let fp: str =>
yield fp;
case =>
- return;+ yield LOCALTIME_PATH; };
const file = match (os::open(filepath)) {
--
2.36.1