From 1f41be62f13942f0bdc44a1617c37a3295b29b98 Mon Sep 17 00:00:00 2001 From: Norbert Maciaszek Date: Sat, 15 Nov 2025 22:16:27 +0100 Subject: [PATCH] Update cron schedule to run at the top of the hour and set timezone to Europe/Warsaw --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a5ea242..13d3a0f 100644 --- a/index.js +++ b/index.js @@ -146,8 +146,8 @@ async function init() { } sendMessage("Zaczynam monitoring cen"); -const task = cron.schedule("* */3 * * *", async () => { - await init(); +const task = cron.schedule("0 */3 * * *", init, { + timezone: "Europe/Warsaw", }); task.execute();