|
@@ -1814,7 +1814,11 @@ func GetDateByDateTypeV2(dateType int, tmpStartDate, tmpEndDate string, startYea
|
|
|
startDate = startDate + "-01"
|
|
|
}
|
|
|
if strings.Count(endDate, "-") == 1 {
|
|
|
- endDate = endDate + "-01"
|
|
|
+ endTime, err := time.Parse(FormatYearMonthDate, endDate)
|
|
|
+ if err != nil {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ endDate = endTime.AddDate(0, 1, -1).Format(FormatDate)
|
|
|
}
|
|
|
}
|
|
|
|