Can't create schedule with 30 or 31 day of every month
See original GitHub issueI’m trying to create a new job which should run every 30 or 31st day of month. Although cron strings like
'10 10 31 * *'
, '0 10 10 31 * *'
or '* 10 10 30 * *'
seem to be correct, I get exception Month '1' is limited to '29' days.
which pushes me to explicitly specify months that have 30 or 31 days.
My proposal is not to reject cron strings that have at least one correct date in future.
Issue Analytics
- State:
- Created 8 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Create an all-day event - Microsoft Support
Create an event. In the Calendar, select New Appointment. You can also select New Items > All Day Event. Enter a description in...
Read more >How to set up repeating event in Google Calendar on last day ...
Click on your calendar and you can verify that your repeating event now occurs on the last day of each month. You can...
Read more >Calendar recurrences on the last day of the month
In Google Calendar, scheduling an appointment on the 31st of every month means it will only appear on those months that have 31...
Read more >Solved: Scheduled script to run on Last day of every month...
Yes, setting the run date to the 31st at 00:00:00 will run the job on the last day of every month at 00:00:00...
Read more >Why Don't All Months Have the Same Number of Days?
Unfortunately, the lunar cycle is approximately 29.5 days, which does not divide ... Roman calendar in 46 B.C. to make each month have...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Using the
L
alias is not supported as of July 20th 2018, but you can always just do it on the 1st day of the month, with the earliest timezone in the world. At least that works for my case.Maybe you can use the logic here. You can use package momentJS.
The cron will be run every 28 - 31 day, and then check whether current day is a last day of current month.