From 965293fc1458c540c0f85d35eb4919b0ce8e15c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 27 Oct 2020 18:28:30 +0800 Subject: [PATCH] service --- main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.go b/main.go index 980a1b877..7df05e90d 100644 --- a/main.go +++ b/main.go @@ -6,6 +6,7 @@ import ( "net/http" _ "net/http/pprof" "os" + "time" "git.rosy.net.cn/jx-callback/business/jxstore/cms" @@ -36,6 +37,12 @@ var ( func Init() { beegodb.Init() + + buildTime, err := time.ParseInLocation(time.RFC3339, BuildDate, time.UTC) + if err == nil { + buildTime = buildTime.Local() + } + cms.InitServiceInfo(Version, buildTime, GitCommit) } // 返回true表示非运行服务