hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 78fc925c997c75e71095855a1f8a095300ddbebb
parent 9e0a6d84479539d84cfbb73ddb0e19b97858e1bc
Author: Antero Mejr <antero@mailbox.org>
Date:   Thu,  7 Jul 2022 16:46:27 +0000

time::chrono: allow /etc/localtime to be a file

/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>

Diffstat:
Mtime/chrono/timezone.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)) {