mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-27 13:04:44 +00:00
1 parent
c6f621fba5
commit
6ab719654f
1 file changed
+2
-2
@@ -78,8 +78,8 @@ local function getTimeUnit(value, unit)
|
|||||||
for listValue in string.gmatch(value, '%d+') --[[@as number]] do
|
for listValue in string.gmatch(value, '%d+') --[[@as number]] do
|
||||||
listValue = tonumber(listValue)
|
listValue = tonumber(listValue)
|
||||||
|
|
||||||
-- if current minute is less than in the expression 0,10,20,45 * * * *
|
-- e.g. if current time is less than in the expression 0,10,20,45 * * * *
|
||||||
if listValue > currentTime then
|
if listValue >= currentTime then
|
||||||
return listValue
|
return listValue
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user