From 0cfae32a68c4cca6e641bf8b481f9942ad80e5f7 Mon Sep 17 00:00:00 2001 From: CeciliaKelley33Mm Date: Sun, 13 Oct 2024 12:16:21 +0700 Subject: [PATCH] make runtime 5 hours 30 minutes WOW --- checkTime.js | 2 +- loop.sh | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/checkTime.js b/checkTime.js index 8b10ab0..e32ea18 100644 --- a/checkTime.js +++ b/checkTime.js @@ -3,7 +3,7 @@ const [startDate, startMonth, startYear, startHours, startMinutes] = startTimeSt const targetTime = new Date() targetTime.setUTCFullYear(startYear, startMonth - 1, startDate) -targetTime.setUTCHours(startHours + 5, startMinutes, 0, 0) +targetTime.setUTCHours(startHours + 5, startMinutes + 30, 0, 0) const currentTime = new Date() currentTime.setUTCSeconds(0) // we don't want precise time diff --git a/loop.sh b/loop.sh index 286c119..1265c7a 100755 --- a/loop.sh +++ b/loop.sh @@ -60,8 +60,6 @@ requestWebhook() { } check() { - # checkTime.js adds the start time by 5 hours - node checkTime.js $START_TIME exitCode=$?