Anchor the year anchor date to local midnight

This commit is contained in:
Scott Ventura 2021-11-13 11:47:59 -06:00
parent 8ed98be4a2
commit 5ffe0532ec
1 changed files with 1 additions and 0 deletions

View File

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