Skip to content

time: add SetLocal #10701

@georgmu

Description

@georgmu

I want to provide an API server which is capable of setting the system time zone.

After changing the system time zone, the running go process still uses the old timezone and it is not possible to refresh except restarting the process.

In java there is a java.util.TimeZone.setDefault() to switch the timezone of the VM. It would be nice to either provide something similar or to add a method to refresh the localLoc variable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions