christmas stops on jan 1st
This commit is contained in:
parent
73d5a7f839
commit
187036a27a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue