|
@@ -77,10 +77,11 @@ func getPredictEdbDayList(startDate, endDate time.Time, frequency string) (dayLi
|
|
|
}
|
|
|
case "月度":
|
|
|
for currDate := startDate; currDate.Before(endDate) || currDate.Equal(endDate); {
|
|
|
- currDate = time.Date(currDate.Year(), currDate.Month(), 1, 0, 0, 0, 0, time.Now().Location()).AddDate(0, 2, -1)
|
|
|
+ currDate = time.Date(currDate.Year(), currDate.Month(), 1, 0, 0, 0, 0, time.Now().Location()).AddDate(0, 1, -1)
|
|
|
if !currDate.After(endDate) {
|
|
|
dayList = append(dayList, currDate)
|
|
|
}
|
|
|
+ currDate = currDate.AddDate(0, 0, 1)
|
|
|
}
|
|
|
}
|
|
|
return
|