SetTimeLocation configures the location used when rendering time.Time values.
(location *time.Location)
| 13 | |
| 14 | // SetTimeLocation configures the location used when rendering time.Time values. |
| 15 | func SetTimeLocation(location *time.Location) { |
| 16 | timeLocationMu.Lock() |
| 17 | defer timeLocationMu.Unlock() |
| 18 | timeLocation = location |
| 19 | } |
| 20 | |
| 21 | // ResetTimeLocation clears any configured location override for rendered times. |
| 22 | func ResetTimeLocation() { |
no outgoing calls