fix(docs): continue to fix Christmas time check

This commit is contained in:
Neko
2026-01-05 12:37:48 +08:00
committed by GitHub
parent 64eb668248
commit 37878307b8
+1 -1
View File
@@ -13,5 +13,5 @@ export function isBetweenChristmasAndHalfOfJanuary(date: Date) {
const christmas = new Date(year, 11, 20) // December 20
const halfOfJanuary = new Date(year, 0, 10) // January 10 of the next year
return isAfter(date, christmas) && isBefore(date, halfOfJanuary)
return isAfter(date, christmas) || isBefore(date, halfOfJanuary)
}