Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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
@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. :)