🐛 修复 Windows time.LoadLocation

This commit is contained in:
naiba
2022-03-18 23:57:30 +08:00
parent d73ceaaaa5
commit 84866384f4
3 changed files with 4 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ import (
pb "github.com/naiba/nezha/proto"
)
var Version = "v0.12.13" // !!记得修改 README 中的 badge 版本!!
var Version = "v0.12.14" // !!记得修改 README 中的 badge 版本!!
var (
Conf *model.Config
@@ -31,7 +31,7 @@ var (
SortedServerLock sync.RWMutex
)
func init() {
func Init() {
var err error
Loc, err = time.LoadLocation("Asia/Shanghai")
if err != nil {