From 37878307b83d6775ed56e5330418b4d346d93a5b Mon Sep 17 00:00:00 2001 From: Neko Date: Mon, 5 Jan 2026 12:37:48 +0800 Subject: [PATCH] fix(docs): continue to fix Christmas time check --- docs/.vitepress/composables/date.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/.vitepress/composables/date.ts b/docs/.vitepress/composables/date.ts index 2122bac1e..ae871c50e 100644 --- a/docs/.vitepress/composables/date.ts +++ b/docs/.vitepress/composables/date.ts @@ -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) }