From 15ca781f51706471873da6e29e302bdbddaa91ae 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 023cf4a901..60547dbe05 100644 --- a/common/log/log.go +++ b/common/log/log.go @@ -364,7 +364,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) {