From 7d640f415f4dfdfd5c1767531c89f6fb73d82924 Mon Sep 17 00:00:00 2001 From: Edmond Date: Wed, 25 Dec 2019 19:36:02 +0800 Subject: [PATCH] change log timestamp to UTC (#1142) --- common/log/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/log/log.go b/common/log/log.go index 2937604f..087c9cbf 100644 --- a/common/log/log.go +++ b/common/log/log.go @@ -367,7 +367,7 @@ func InitLog(logLevel int, a ...interface{}) { } } fileAndStdoutWrite := io.MultiWriter(writers...) - Log = New(fileAndStdoutWrite, "", log.Ldate|log.Lmicroseconds, logLevel, logFile) + Log = New(fileAndStdoutWrite, "", log.LUTC|log.Ldate|log.Lmicroseconds, logLevel, logFile) } func GetLogFileSize() (int64, error) {