you need /usr/local/go/lib/time/zoneinfo.zip. time.LoadLocation is using 
it. Also /usr/local/go/lib/time/ has a script to refresh timezones.

On Monday, October 23, 2017 at 6:11:15 AM UTC-4, Juliusz Chroboczek wrote:
>
> Hi, 
>
> I'm running a statically linked (CGO_ENABLED=0) Go network server in 
> a chroot under Linux.  The chroot is completely empty (except for the 
> server's data files), yet, to my surprise, the only issue I'm seeing is 
> that the timezone is wrong. 
>
> So two questions, perhaps three: 
>
>   1. Which file(s) do I copy into the chroot in order to have the correct 
>      timezone ? 
>
>   2. Any other files or device nodes I should copy into the chroot? 
>
>   3. Am I cargo-culting, should I use a different setup instead?  I'm not 
>      too concerned about security, since the host is a VM connected to our 
>      DMZ, just reasonably paranoid. 
>
> Thanks, 
>
> -- Juliusz 
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to