Added explicit timezone loading
This commit is contained in:
parent
871851d138
commit
7c93fc8c37
|
@ -11,7 +11,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
Version string = "0.53.1"
|
||||
Version string = "0.53.2"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue