MCPcopy Create free account
hub / github.com/github/gh-aw / SetTimeLocation

Function SetTimeLocation

pkg/console/timezone.go:15–19  ·  view source on GitHub ↗

SetTimeLocation configures the location used when rendering time.Time values.

(location *time.Location)

Source from the content-addressed store, hash-verified

13
14// SetTimeLocation configures the location used when rendering time.Time values.
15func 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.
22func ResetTimeLocation() {

Calls

no outgoing calls