Commit d3c92b7c authored by Alex Brainman's avatar Alex Brainman

time: fix handling of locations with no dst on windows

Fixes #3437.

R=rsc
CC=golang-dev
https://golang.org/cl/5967063
parent 48a76e13
...@@ -83,6 +83,9 @@ func initLocalFromTZI(i *syscall.Timezoneinformation) { ...@@ -83,6 +83,9 @@ func initLocalFromTZI(i *syscall.Timezoneinformation) {
l.cacheStart = -1 << 63 l.cacheStart = -1 << 63
l.cacheEnd = 1<<63 - 1 l.cacheEnd = 1<<63 - 1
l.cacheZone = std l.cacheZone = std
l.tx = make([]zoneTrans, 1)
l.tx[0].when = l.cacheStart
l.tx[0].index = 0
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment