Anchor the year anchor date to local midnight
This commit is contained in:
parent
8ed98be4a2
commit
5ffe0532ec
|
@ -268,6 +268,7 @@ class DoomsdayDate {
|
|||
const anchorDate = new Date(this.date);
|
||||
anchorDate.setDate(4); // 4th
|
||||
anchorDate.setMonth(3); // April
|
||||
anchorDate.setHours(0); // midnight local time
|
||||
return DoomsdayDate.getWeekDayOf(anchorDate);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue