]> Cypherpunks repositories - gostls13.git/commit
time: defer loading ZONEINFO until first time.LoadLocation call
authorJeff Johnson <jrjohnson@google.com>
Tue, 24 Jan 2017 19:45:20 +0000 (11:45 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 1 Feb 2017 21:12:31 +0000 (21:12 +0000)
commit6d6360648a6820306a5ead6e2a0bf75ad0bb78d1
treed7e53f8d4c201c2bff112aedb7b9a1dbe9505a35
parented8c62b7fb47b717dc2adc9f6d0c90c924c67712
time: defer loading ZONEINFO until first time.LoadLocation call

A user application can now use os.Setenv("ZONEINFO", ..) becase the
value is no longer read on init of the time package.

Fixes #18619

Change-Id: Id8e303d67e6fb9c5d6ea9f969d8c94f6fff1bee3
Reviewed-on: https://go-review.googlesource.com/35639
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/time/export_test.go
src/time/zoneinfo.go
src/time/zoneinfo_test.go