package util import ( "os/exec" "strings" "time" ) func FixTimezone() { out, err := exec.Command("/system/bin/getprop", "persist.sys.timezone").Output() if err != nil { return } timeZone, err := time.LoadLocation(strings.TrimSpace(string(out))) if err != nil { return } time.Local = timeZone }