On Tue, Sep 18, 2018 at 10:06 AM, Tamás Gulácsi <tgulacs...@gmail.com> wrote: > > If I read golang.org/src/time/zoneinfo_read.go right, the Go project ships > with the TZInfo file (zip). > > zoneinfo.go has > //go:generate env ZONEINFO=$GOROOT/lib/time/zoneinfo.zip go run genzabbrs.go > -output zoneinfo_abbrs_windows.go > > so it seems to me that it embeds the zone info from the zip file. > > And > > $ pwd > /usr/local/go/lib/time > :gthomas@redpath: /usr/local/go/lib/time > $ cat README > The zoneinfo.zip archive contains time zone files compiled using > the code and data maintained as part of the IANA Time Zone Database. > The IANA asserts that the database is in the public domain. > > For more information, see > https://www.iana.org/time-zones > ftp://ftp.iana.org/tz/code/tz-link.htm > http://tools.ietf.org/html/rfc6557 > > To rebuild the archive, read and run update.bash. > > > So I'm sure the approproate release will contain the changes!
Go does ship a timezone zip file, but on Unix systems it defaults to reading the timezone files from the local system. See zoneSources in time/zoneinfo_unix.go. Go will only look in the zip file if the timezone information is not available locally. In any case the answer the original question is the same: when the timezone files update, Go will automatically adapt. Just like any other program on a Unix system. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.