fix statistics时间范围
This commit is contained in:
parent
a0596475a7
commit
91d3cfe16b
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue