From: Alex Brainman Date: Tue, 3 Apr 2012 01:39:38 +0000 (+1000) Subject: time: fix handling of locations with no dst on windows X-Git-Tag: go1.1rc2~3458 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d3c92b7c903064f31c6f0aec4c3be5cfd30b0e53;p=gostls13.git time: fix handling of locations with no dst on windows Fixes #3437. R=rsc CC=golang-dev https://golang.org/cl/5967063 --- 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 }