Have a background routine that polls the os every N secs - but the OP can do 
that themselves. 

> On Mar 1, 2022, at 5:32 PM, Kurtis Rader <kra...@skepticism.us> wrote:
> 
> 
>> On Tue, Mar 1, 2022 at 2:55 PM Carl <carle...@gmail.com> wrote:
> 
>> I would like to  understand the reasoning for the implementation, if 
>> possible. 
>> 
>> Simple example:
>> I have a laptop running Ubuntu (or any other popular Linux distro).
>> I fly from New Zealand to Los Angeles
>> I open my laptop and change the timezone via the system GUI (which under the 
>> hood uses timedatectl which updates /etc/timezone and /etc/localtime)
>> 
>> If I had running services written in Go, they would not be aware of the 
>> timezone change.
>> 
>> Questions I have:
>> Why doesn't Go respect standard time zone changes?
>> Is there a recommended way to address this?
> 
> How would Go do that in a cross-platform manner?  Also, many long running 
> programs may produce output (e.g., log files) where you don't want a TZ 
> change to affect the output. Even if this capability were added to the Go 
> stdlib it should be opt-in, not the default behavior.
> 
> -- 
> Kurtis Rader
> Caretaker of the exceptional canines Junior and Hank
> -- 
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD-xUMPXMy6WM_vf1O83mVV7TROam84uCJthRLnzjSY2cQ%40mail.gmail.com.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/8371E74F-4BD9-4AEE-8C1F-93992F3F4913%40ix.netcom.com.

Reply via email to