This simple code:
tzloc, err := time.LoadLocation(service.Settings.TimezoneName)
if err != nil {
panic(err)
}
works just fine in Go 1.12, but in 1.13, it fails with "unknown timezone Australia/Melbourne". I'm sure it works in some environments, but for whatever reason, it is broken in 1.13 for us. It is immediately fixed by reverting to 1.12. I am wondering if anyone knows of any issues or reasons in 1.13 why this would fail despite this assurance from the release notes: "As always, the release maintains the Go 1 promise of compatibility. We expect almost all Go programs to continue to compile and run as before."
service.Settings.TimezoneName
? Addfmt.Printf("%q\n", service.Settings.TimezoneName)
before thistzloc, err := time.LoadLocation(service.Settings.TimezoneName)
to see the content ofservice.Settings.TimezoneName
log.Printf("tz = %q\n", service.Settings.TimezoneName)
output? It will catch any rogue bytes in your input.