]> Cypherpunks repositories - gostls13.git/commit
time: enable Location loading from user provided timezone data
authorFlorian Uekermann <florian@uekermann.me>
Fri, 6 Oct 2017 15:16:43 +0000 (17:16 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 21 Nov 2017 19:13:52 +0000 (19:13 +0000)
commit2951f909eae0afc4bea4067c98fef1a4f760006c
treebcea3289366fc1733ed5cfe541ddfd4203098f8f
parent9a14cd9e7556e68ea98255ae809b5862d574df9e
time: enable Location loading from user provided timezone data

The return values of the LoadLocation are inherently dependent
on the runtime environment. Add LoadLocationFromTZData, whose
results depend only on the timezone data provided as arguments.

Fixes #20629

Change-Id: I43b181f4c05c219be3ec57327540263b7cb3b2aa
Reviewed-on: https://go-review.googlesource.com/68890
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/time/export_test.go
src/time/internal_test.go
src/time/zoneinfo.go
src/time/zoneinfo_read.go
src/time/zoneinfo_test.go