Hello,

Am Mi., 2. März 2022 um 09:48 Uhr schrieb Brian Candler <b.cand...@pobox.com
>:

> On Tuesday, 1 March 2022 at 22:54:35 UTC carl...@gmail.com wrote:
>
>> If I had running services written in Go, they would not be aware of the
>> timezone change.
>>
>
> I think the current behaviour is reasonable, because it's rare that a
> running, persistent *service* needs to know of a change of the *system*
> timezone.
>
> If this is a web server interacting with a user, then either it should use
> the browser timezone, or have a user preference for timezone.  If it's
> writing log files then it should be using UTC or a chosen fixed timezone
> (otherwise there's ambiguity about what time events happened).  If it's
> talking to a database with date/time columns, the same applies.
>
> Yes, I agree. In rare cases when a service has to re-evaluate its settings
it should be the responsibility of the program changing the configuration
to initiate reloading settings or re-starting the service.

How to do that is dependent on the operation system:
* In the old times on Unix or Linux a HUP signal was send to inform a
service (=daemon) to re-read its configuration and maybe to restart. In
systemd the systemctl reload command could be used.
* for Windows I have no idea

BR,
Roland



> --
> 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/7bc6b39e-9b60-4ae6-9df1-f8a2abceb0bcn%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/7bc6b39e-9b60-4ae6-9df1-f8a2abceb0bcn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CA%2B8p0G1aD9xHiMDanbLnNBoz3ftagqU95512u8VBmNVFRMa6GQ%40mail.gmail.com.

Reply via email to