Re: [dev] golang: time.Tick() and ntp

From: Markus Teich <markus.teich_AT_stusta.mhn.de>
Date: Thu, 9 Oct 2014 13:31:53 +0200

Silvan Jegen wrote:
> I think you could use http://golang.org/pkg/time/#Time.Zone to
> occasionally check wether the time zone has changed since the script has
> been started and then use http://golang.org/pkg/time/#ParseInLocation to
> output the time.

Heyho Silvan,

time.Now().Zone() does not notice the timezone change at all. Does it for you?
Maybe it is a gentoo issue when updating the timezone… I'm ok with rebooting
after setting a new timezone, but for people living at the „border“ it may still
be an issue.

--Markus
Received on Thu Oct 09 2014 - 13:31:53 CEST

This archive was generated by hypermail 2.3.0 : Thu Oct 09 2014 - 13:36:08 CEST