From 5ffe0532eca2c2a1355a8a9d46fb657920c5bf56 Mon Sep 17 00:00:00 2001 From: Scott Ventura Date: Sat, 13 Nov 2021 11:47:59 -0600 Subject: [PATCH] Anchor the year anchor date to local midnight --- src/main/js/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/js/main.js b/src/main/js/main.js index 807ce12..6b9ba7c 100644 --- a/src/main/js/main.js +++ b/src/main/js/main.js @@ -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); };