From 91d3cfe16b0fbefae1542db8ac06555df7c2c3ec Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Mon, 6 Jan 2025 11:08:08 +0800 Subject: [PATCH] =?UTF-8?q?fix=20statistics=E6=97=B6=E9=97=B4=E8=8C=83?= =?UTF-8?q?=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- statistics/task/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/statistics/task/main.go b/statistics/task/main.go index b2172b4..8cae605 100644 --- a/statistics/task/main.go +++ b/statistics/task/main.go @@ -39,8 +39,8 @@ var ExcelMgrSingle *ExcelMgr func run() { if VP.GetBool("IsDatabaseMode") { - VP.Set("StartTime", common.HMSToTime(0, 0, 0).Format(time.RFC3339)) - VP.Set("EndTime", common.HMSToTime(0, 0, 0).AddDate(0, 0, 1).Format(time.RFC3339)) + VP.Set("StartTime", common.HMSToTime(0, 0, 0).AddDate(0, 0, -1).Format(time.RFC3339)) + VP.Set("EndTime", common.HMSToTime(0, 0, 0).Format(time.RFC3339)) } startTime, err := time.Parse(time.RFC3339, VP.GetString("StartTime"))