From 84866384f4e3d05da303e06e656542c3ab1b3cbe Mon Sep 17 00:00:00 2001 From: naiba Date: Fri, 18 Mar 2022 23:57:30 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20Windows=20t?= =?UTF-8?q?ime.LoadLocation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- cmd/dashboard/main.go | 1 + service/singleton/singleton.go | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6bad5cb..0c6f059 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@
LOGO designed by 熊大 .

-    +   

:trollface: 哪吒监控 一站式轻监控轻运维系统。支持系统状态、HTTP(SSL 证书变更、即将到期、到期)、TCP、Ping 监控报警,计划任务和在线终端。

diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go index 66d7f5a..e302ec8 100644 --- a/cmd/dashboard/main.go +++ b/cmd/dashboard/main.go @@ -26,6 +26,7 @@ func init() { } // 初始化 dao 包 + singleton.Init() singleton.Conf = &model.Config{} singleton.Cron = cron.New(cron.WithSeconds(), cron.WithLocation(shanghai)) singleton.Crons = make(map[uint64]*model.Cron) diff --git a/service/singleton/singleton.go b/service/singleton/singleton.go index f0c1d78..c9eb378 100644 --- a/service/singleton/singleton.go +++ b/service/singleton/singleton.go @@ -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 {