]> Cypherpunks repositories - gostls13.git/commit
time: document an alternative way of setting the system's time zone
authorDomas TamaĊĦauskas <puerdomus@gmail.com>
Thu, 10 Oct 2019 18:54:18 +0000 (21:54 +0300)
committerIan Lance Taylor <iant@golang.org>
Fri, 1 Nov 2019 21:41:41 +0000 (21:41 +0000)
commit9bde9b4d1561ed915904a4f64764076dcfe58419
treeb301f46518f89a167d96911f30d60f68ba4dc209
parent4ff45821ae4635ce806fbb8d23acd96581a50304
time: document an alternative way of setting the system's time zone

User's program was mutating time.Local variable and crashing
itself as a consequence. Instead of documenting that time.Local
variable should not be mutated, recommended way of setting the
system's time zone has been documented.

Fixes #34814

Change-Id: I7781189855c3bf2ea979dfa07f86c283eed27091
Reviewed-on: https://go-review.googlesource.com/c/go/+/200457
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/time/zoneinfo.go