From d264f4735b9ff13b4a24df5e04e5288161dbd0c3 Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 10 Nov 2022 17:31:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B9=B4=E5=BA=A6=E6=95=B0=E6=8D=AE=E5=87=86?= =?UTF-8?q?=E5=A4=87=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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/user_business_analysis.go b/models/user_business_analysis.go index 367674076..50bb34406 100644 --- a/models/user_business_analysis.go +++ b/models/user_business_analysis.go @@ -1726,7 +1726,7 @@ func queryCommitAction(start_unix int64, end_unix int64, actionType int64) (map[ } else { mostActiveMap[actionRecord.UserID][key] = getMapKeyStringValue(key, mostActiveMap[actionRecord.UserID]) + 1 } - utcTime := actionRecord.CreatedUnix.AsTime().UTC() + utcTime := actionRecord.CreatedUnix.AsTime() hour := utcTime.Hour() if hour >= 0 && hour <= 5 { key = "hour_hour"