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

From: Silvan Jegen <s.jegen_AT_gmail.com>
Date: Thu, 9 Oct 2014 20:33:04 +0200

Hi Markus

On Thu, Oct 09, 2014 at 01:31:53PM +0200, Markus Teich wrote:
> 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.
>
> 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.

I haven't checked but I assumed it would since the time changed as well.
Maybe this is another bug report in the making...


Cheers,

Silvan
Received on Thu Oct 09 2014 - 20:33:04 CEST

This archive was generated by hypermail 2.3.0 : Thu Oct 09 2014 - 20:36:22 CEST