fix statistics时间范围

This commit is contained in:
sk 2025-01-06 11:08:08 +08:00
parent a0596475a7
commit 91d3cfe16b
1 changed files with 2 additions and 2 deletions

View File

@ -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"))