From 822847955da4691fdae294fd8aa65c1efc101dc4 Mon Sep 17 00:00:00 2001 From: zouap Date: Wed, 29 Sep 2021 16:49:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- models/user_business_analysis.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/user_business_analysis.go b/models/user_business_analysis.go index b17b7a58b..daaccd8d8 100644 --- a/models/user_business_analysis.go +++ b/models/user_business_analysis.go @@ -68,12 +68,12 @@ func countData() { sess.Find(&userList) currentTimeNow := time.Now() - log.Info("current time:" + currentTimeNow.Format("2000-01-01 10:10:10")) + log.Info("current time:" + currentTimeNow.Format("2006-01-02 15:04:05")) yesterday := currentTimeNow.AddDate(0, 0, -1) startTime := time.Date(yesterday.Year(), yesterday.Month(), yesterday.Day(), 0, 0, 0, 0, yesterday.Location()) start_unix := startTime.Unix() - log.Info("DB query time:" + startTime.Format("2000-01-01 10:10:10")) + log.Info("DB query time:" + startTime.Format("2006-01-02 15:04:05")) endTime := time.Date(currentTimeNow.Year(), currentTimeNow.Month(), currentTimeNow.Day(), 0, 0, 0, 0, currentTimeNow.Location()) end_unix := endTime.Unix()