fix display incorrect month

This commit is contained in:
MaysWind
2025-01-04 23:34:20 +08:00
parent e7d7f217a9
commit a9e50d29d3
+2 -2
View File
@@ -347,8 +347,8 @@ export function getYearMonthFirstUnixTime(yearMonth: YearMonth | string): number
if (isString(yearMonth)) {
yearMonthObj = getYearMonthObjectFromString(yearMonth as string);
} else if (isObject(yearMonth) && !isYearMonthValid((yearMonth as YearMonth).year, (yearMonth as YearMonth).month)) {
yearMonthObj = null;
} else if (isObject(yearMonth) && isYearMonthValid((yearMonth as YearMonth).year, (yearMonth as YearMonth).month)) {
yearMonthObj = yearMonth as YearMonth;
}
if (!yearMonthObj) {