From 05173abde0c7d21e83dc3958202d72f9e9c148e5 Mon Sep 17 00:00:00 2001 From: Boof <97455552+hexahigh@users.noreply.github.com> Date: Fri, 9 Jun 2023 11:21:39 +0200 Subject: [PATCH] fix? --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6670ffa..6710b8b 100644 --- a/index.js +++ b/index.js @@ -34,7 +34,7 @@ function countdownTimer() { const now = new Date().getTime(); const nextYear = new Date(theDate).getTime(); const timeRemaining = nextYear - now; - if (nextYear < 0) { + if (timeRemaining < 0) { year = year + 1 countdownTimer() } else {