From 81ab98af948196feac270a70f03dd500e7b5ca9b Mon Sep 17 00:00:00 2001 From: Starfall Date: Wed, 6 Sep 2023 08:32:15 -0500 Subject: fix moon-phase off by one --- js/moon-phase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/moon-phase.js b/js/moon-phase.js index e8114f2..5511bca 100644 --- a/js/moon-phase.js +++ b/js/moon-phase.js @@ -26,7 +26,7 @@ icons_inverted = ['\u{1f315}', '\u{1f317}', '\u{1f311}', '\u{1f313}'] function getMoonsString(disable_emoji, inverted_icons) { today = Math.floor((Date.now() - 18e6) / 86.4e6) - next_index = moons.findIndex((element) => element > today) + next_index = moons.findIndex((element) => element >= today) next_days = moons.slice(next_index, next_index + 4) str = "" -- cgit