From 4d1bd7e84cf2376fa006f50479257ced1fad7fb9 Mon Sep 17 00:00:00 2001 From: kercylan98 Date: Fri, 5 May 2023 10:54:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E7=94=A8=E6=96=B0=E7=89=88=E5=86=85?= =?UTF-8?q?=E7=BD=AE=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/log/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/log/log.go b/utils/log/log.go index 67ff5fb..f8b3eba 100644 --- a/utils/log/log.go +++ b/utils/log/log.go @@ -31,7 +31,7 @@ func newLogger() *zap.Logger { EncodeLevel: zapcore.CapitalLevelEncoder, TimeKey: "ts", EncodeTime: func(t time.Time, enc zapcore.PrimitiveArrayEncoder) { - enc.AppendString(t.Format("2006-01-02 15:04:05")) + enc.AppendString(t.Format(time.DateTime)) }, CallerKey: "file", EncodeCaller: zapcore.ShortCallerEncoder,