From cab13cee3ca3c8bb62182f44084524e1f8d78d07 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 1 Jun 2025 23:42:35 +0800 Subject: [PATCH] code refactor --- src/lib/datetime.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/datetime.ts b/src/lib/datetime.ts index 0621e4de..d6ac6fe9 100644 --- a/src/lib/datetime.ts +++ b/src/lib/datetime.ts @@ -886,7 +886,7 @@ export function getCombinedDateAndTimeValues(date: Date, timeValues: string[], i export function getValidMonthDayOrCurrentDayShortDate(unixTime: number, currentShortDate: string): string { const currentTime = moment(); - let monthLastTime = moment.unix(getMonthLastUnixTimeBySpecifiedUnixTime(unixTime)); + const monthLastTime = moment.unix(getMonthLastUnixTimeBySpecifiedUnixTime(unixTime)); if (currentShortDate) { const yearMonthDay = currentShortDate.split('-');