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