christmas stops on jan 1st

This commit is contained in:
Roscoe 2024-12-27 20:14:46 +00:00
parent 73d5a7f839
commit 187036a27a
Signed by: RoscoeDaWah
SSH key fingerprint: SHA256:Hqn452XQ1ETzUt/FthJu6+OFkS4NBxCv5VQSEvuk7CE

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;
}