From b4a05ca539edd62efc4b496be475eb6b3dc07d00 Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Fri, 17 Nov 2023 08:15:26 +0700 Subject: [PATCH] hotfix(hackernews): missing greater or equal sign comparator --- src/hackernews.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hackernews.js b/src/hackernews.js index 54c1fb0..6233f6d 100644 --- a/src/hackernews.js +++ b/src/hackernews.js @@ -34,7 +34,7 @@ for (;;) { const now = new Date(); let nextTime; - if (now.getUTCHours() > 11) { + if (now.getUTCHours() >= 11) { // The next time is 00:00 AM nextTime = new Date(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDay() + 1, 0, 0, 0, 0); } else if (now.getHours() < 11) {