christmas stops on jan 1st

This commit is contained in:
floppydiskette 2024-12-27 20:14:46 +00:00
commit 187036a27a
No known key found for this signature in database

View file

@ -21,6 +21,6 @@ function isItChristmas() {
const currentDate = new Date();
const currentYear = currentDate.getFullYear();
const startDate = new Date(`${currentYear}-11-10`);
const endDate = new Date(`${currentYear + 1}-03-01`);
const endDate = new Date(`${currentYear + 1}-01-01`);
return currentDate > startDate && currentDate < endDate;
}