forked from overextended/ox_lib
-
-
Notifications
You must be signed in to change notification settings - Fork 128
[Bug] Cron not working properly #95
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
So I tried to use the cron for some script of mine, and it keep failing while i have range in hours section
To Reproduce
Steps to reproduce the behavior:
- So i have 0 17-23 * * sun
- It only run once at 17 and nothing else
Additional context
After checking, i believe that this is due to when minutes is > maxUnit, and we have self.hours, it won't add another hours onto it, that why it became 0 17, but it is already past, so it won't find another nextTime, it stucks there until next cron or restart
I believe, list should also have the same bug, for now i know steps is the working properly for now
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working