From 6250fad15cd9b8e41c1261a7c84c559c12b0db86 Mon Sep 17 00:00:00 2001 From: jinnrry Date: Tue, 5 Mar 2024 15:51:41 +0800 Subject: [PATCH] fix --- server/main.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/server/main.go b/server/main.go index 5aae531e..07384647 100644 --- a/server/main.go +++ b/server/main.go @@ -50,11 +50,8 @@ func main() { // 日志消息输出可以是任意的io.writer类型 log.SetOutput(os.Stdout) - var cst, err = time.LoadLocation("Asia/Shanghai") - if err != nil { - panic(err) - } - time.Local = cst + var cstZone = time.FixedZone("CST", 8*3600) + time.Local = cstZone config.Init()