package main import ( "time" "github.com/perfect-panel/server/cmd" ) func init() { // Ensure time.Local matches DSN loc=Asia/Shanghai. // In scratch Docker images, LoadLocation may fail due to missing zoneinfo, // so fall back to FixedZone as a guaranteed alternative. loc, err := time.LoadLocation("Asia/Shanghai") if err != nil { loc = time.FixedZone("CST", 8*3600) } time.Local = loc } func main() { cmd.Execute() }