GNU bug report logs - #48364
[PATCH 5/5] gnu: Add tz.

Previous Next

Package: guix-patches;

Reported by: Stefan Reichör <stefan <at> xsteve.at>

Date: Tue, 11 May 2021 18:57:04 UTC

Severity: normal

Tags: patch

Merged with 48360, 48361, 48362, 48363

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Reichör <stefan <at> xsteve.at>
To: 48364 <at> debbugs.gnu.org
Subject: [bug#48364] [PATCH 5/5] gnu: Add tz.
Date: Thu, 13 May 2021 20:59:07 +0200
Another attempt to answer the question from Leo Famulari

I didn't get the question from the bugtracker by email:

,----
| I'm curious, how does it find the time zone database?
| 
| It should look them up at runtime via something like a TZDIR environment
| variable. It should not include a copy of the database, or else it will
| become "stale" before too long.
`----

Yesterday I tried to answer it directly in the web interface. My answer
didn't show up :-(

Now I try to answer per email


The timezone is determined by the go runtime function LoadLocation:

https://github.com/oz/tz/blob/main/zone.go#L77


LoadLocation does the lookup in the installed timezone database:

https://golang.org/pkg/time/#LoadLocation




This bug report was last modified 3 years and 208 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.