Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
time: LoadLocation: ZONEINFO variable without effect on Windows #14276
When you try to execute time.LoadLocation() on Windows program panic unless it finds zoneinfo.zip file in $GOROOT/lib/time/zoneinfo.zip. Even with ZONEINFO environment variable set you get the same panic.
Test program can be found here: http://play.golang.org/p/UgiIKSEiIP
Using golang 1.5.3 on Windows x86_64
changed the title
time.LoadLocation: ZONEINFO variable without effect on Windows
Feb 9, 2016
@geoko86 I tried to follow your instructions. But I cannot reproduce your problem.
What did I do wrong?
@alexbrainman Thanks for checking.
When I copied it again and pointed ZONEINFO to it, it works.
The error message was not completely clear to me, would have expected something along the line "found zoneinfo.zip, but I cannot read it".
It is safe to close this as user error. :)