-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] 2-0 week expression error #654
Comments
crontab.guru would allow the usage of 2-7 and 3-7 but thats seems not to be supported by node-cron |
Issue Description: Solution: I have used the cron-parser library to parse the cron expression and adjust the day field if the current day is part of the week range. The code then calculates the next date(s) based on the adjusted expression and returns them as Luxon DateTime objects. To implement this bug fix in your codebase, follow these steps: Install the cron-parser library in your project. Please note that you should include the necessary import statements for the required libraries. Testing: |
🎉 This issue has been resolved in version 2.4.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
indeed that expression wasn't supposed to be allowed. It was due to a bug that got fixed in
while fixing the bug mentioned above, I checked that those expressions were correctly supported, and I can confirm they are (at least now, maybe it was different a few months ago) |
🎉 This issue has been resolved in version 3.0.0-beta.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
If the current time is not Tuesday, cron.send will return the time of Tuesday of the next week
But the current time is Tuesday, the returned result is correct
The following takes the current time (Wednesday) as an example
Screenshots
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: