You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Output: [8/24/2024 12:00:00 AM
8/31/2024 12:00:00 AM
9/28/2024 12:00:00 AM
10/26/2024 12:00:00 AM
11/23/2024 12:00:00 AM
11/30/2024 12:00:00 AM] (returning also 5th day if exists in that month)
Expected:
[8/24/2024 12:00:00 AM
9/28/2024 12:00:00 AM
10/26/2024 12:00:00 AM
11/23/2024 12:00:00 AM
12/28/2024 12:00:00 AM
1/25/2025 12:00:00 AM] (should return only 4th day of month)
job.nextRuns(6, startL);
This behaviour only extist on 4th day of month but on every day of week (4th monday, 4th tuesday etc.)
System:
OS: Windows
Runtime Chrome, Node.js
Version 8.1.0
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
JustSmile52
changed the title
nesxtRuns returning wrong values when using 4th day of the Month
nextRuns returning wrong values when using 4th day of the Month
Aug 2, 2024
Describe the bug
When using Nth day of the month, 4th day is 4th AND 5th day if exist in this month
To Reproduce
to reproduce You can use fiddle lined to guthub https://jsfiddle.net/hexag0n/hoa8kwsb/
Today: 2/08/2024
Input: 0 0 0 * * 6#4
Output: [8/24/2024 12:00:00 AM
8/31/2024 12:00:00 AM
9/28/2024 12:00:00 AM
10/26/2024 12:00:00 AM
11/23/2024 12:00:00 AM
11/30/2024 12:00:00 AM] (returning also 5th day if exists in that month)
Expected:
[8/24/2024 12:00:00 AM
9/28/2024 12:00:00 AM
10/26/2024 12:00:00 AM
11/23/2024 12:00:00 AM
12/28/2024 12:00:00 AM
1/25/2025 12:00:00 AM] (should return only 4th day of month)
job.nextRuns(6, startL);
This behaviour only extist on 4th day of month but on every day of week (4th monday, 4th tuesday etc.)
System:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: