mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-15 01:23:56 +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
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user