From 6ab719654fbcce71e88673cd1da8322446f4d406 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Mon, 10 Jul 2023 08:50:26 +1000 Subject: [PATCH] fix(server/cron): list expression should use >= Resolves #366. --- imports/cron/server.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imports/cron/server.lua b/imports/cron/server.lua index 5ff2c4f..39318d5 100644 --- a/imports/cron/server.lua +++ b/imports/cron/server.lua @@ -78,8 +78,8 @@ local function getTimeUnit(value, unit) for listValue in string.gmatch(value, '%d+') --[[@as number]] do listValue = tonumber(listValue) - -- if current minute is less than in the expression 0,10,20,45 * * * * - if listValue > currentTime then + -- e.g. if current time is less than in the expression 0,10,20,45 * * * * + if listValue >= currentTime then return listValue end end