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

Antero Mejr: 1
 time::chrono: allow /etc/localtime to be a file

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/hare-dev/patches/33634/mbox | git am -3
Learn more about email & git

[PATCH] time::chrono: allow /etc/localtime to be a file Export this patch

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

		const file = match (os::open(filepath)) {

To git@git.sr.ht:~sircmpwn/hare
   f7584535..087d4f71  master -> master