diff --git a/cmd/root.go b/cmd/root.go index d78ac06..0122dbe 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -11,7 +11,7 @@ import ( ) const ( - Version string = "0.53.1" + Version string = "0.53.2" ) var ( diff --git a/cmd/web.go b/cmd/web.go index 42e4424..3316823 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -1046,6 +1046,15 @@ func serveVersion() httprouter.Handle { } func ServePage(args []string) error { + timeZone := os.Getenv("TZ") + if timeZone != "" { + var err error + time.Local, err = time.LoadLocation(timeZone) + if err != nil { + return err + } + } + bindHost, err := net.LookupHost(bind) if err != nil { return err