diff --git a/scripts/tzgen/main.go b/scripts/tzgen/main.go index 8a09e8b..51b2ba5 100644 --- a/scripts/tzgen/main.go +++ b/scripts/tzgen/main.go @@ -16,7 +16,7 @@ import ( "strings" ) -const tzdataURL = "https://data.iana.org/time-zones/releases/tzdata2023c.tar.gz" +const tzdataURL = "https://data.iana.org/time-zones/releases/tzdata2025b.tar.gz" func main() { if err := run(context.Background()); err != nil { diff --git a/tz/america_coyhaique.go b/tz/america_coyhaique.go new file mode 100644 index 0000000..062cee9 --- /dev/null +++ b/tz/america_coyhaique.go @@ -0,0 +1,24 @@ +// Code generated by tzgen. DO NOT EDIT. + +package tz + +import "time" +import "sync" + +var ( + onceAmericaCoyhaiqueLocation sync.Once + cacheAmericaCoyhaiqueLocation *time.Location +) + +type AmericaCoyhaique struct{} + +func (AmericaCoyhaique) Location() *time.Location { + onceAmericaCoyhaiqueLocation.Do(func() { + loc, err := time.LoadLocation("America/Coyhaique") + if err != nil { + panic(err) + } + cacheAmericaCoyhaiqueLocation = loc + }) + return cacheAmericaCoyhaiqueLocation +}