From 7510885c4dc552e343b8a49a8e51210534ef3ba2 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Tue, 3 Apr 2012 11:39:38 +1000 Subject: [PATCH] [release-branch.go1] time: fix handling of locations with no dst on windows MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ««« backport 701af83040ac time: fix handling of locations with no dst on windows Fixes #3437. R=rsc CC=golang-dev https://golang.org/cl/5967063 »»» --- src/pkg/time/zoneinfo_windows.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pkg/time/zoneinfo_windows.go b/src/pkg/time/zoneinfo_windows.go index 754e392dec..d596fab93d 100644 --- a/src/pkg/time/zoneinfo_windows.go +++ b/src/pkg/time/zoneinfo_windows.go @@ -83,6 +83,9 @@ func initLocalFromTZI(i *syscall.Timezoneinformation) { l.cacheStart = -1 << 63 l.cacheEnd = 1<<63 - 1 l.cacheZone = std + l.tx = make([]zoneTrans, 1) + l.tx[0].when = l.cacheStart + l.tx[0].index = 0 return } -- 2.48.1