From 64eb6682485e39759134caaeab32b94884579aa3 Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Sun, 4 Jan 2026 23:08:40 +0800 Subject: [PATCH] fix(docs): should count any range between Jan & Dec --- 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 83d0637e7..2122bac1e 100644 --- a/docs/.vitepress/composables/date.ts +++ b/docs/.vitepress/composables/date.ts @@ -11,7 +11,7 @@ export function isBetweenHalloweenAndHalfOfNovember(date: Date) { export function isBetweenChristmasAndHalfOfJanuary(date: Date) { const year = date.getFullYear() const christmas = new Date(year, 11, 20) // December 20 - const halfOfJanuary = new Date(year + 1, 0, 10) // January 10 of the next year + const halfOfJanuary = new Date(year, 0, 10) // January 10 of the next year return isAfter(date, christmas) && isBefore(date, halfOfJanuary) }