From 205ea62420383b7dd40abcca827553c8b02f4636 Mon Sep 17 00:00:00 2001 From: zouap Date: Tue, 17 May 2022 15:20:08 +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 --- routers/repo/user_data_analysis.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/routers/repo/user_data_analysis.go b/routers/repo/user_data_analysis.go index b742fbd8e..457ef0736 100755 --- a/routers/repo/user_data_analysis.go +++ b/routers/repo/user_data_analysis.go @@ -345,8 +345,9 @@ func QueryUserStaticCurrentMonth(ctx *context.Context) { } func getStartTime(pageStartTime time.Time) time.Time { - t, _ := time.ParseInLocation("2006-01-02", setting.RadarMap.GrowthBeginTime, time.UTC) - //t = time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 1, t.UTC().Location()) + t, _ := time.ParseInLocation("2006-01-02", setting.RadarMap.GrowthBeginTime, time.Local) + t = t.UTC() + log.Info("t.time=" + fmt.Sprint(t.Unix())) if pageStartTime.Before(t) { pageStartTime = t }