|
@@ -1813,7 +1813,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)
|
|
|
}
|
|
|
}
|
|
|
|