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
Is this a bug? Or am I doing something wrong here? This is only happening, if the recurring start date is the last of a 30 day month or if we choose the last of February and match it with any other day of the month higher than 28.
The text was updated successfully, but these errors were encountered:
This should only be happening on the dayOfMonth calendar interval (where it assumes that you want the last day of the month if the date you select is the last day of the month). We should make this an explicit option, though, and not have it happen by default...
When I want to match a day with e.g. the last day of a month that has only 30 days, the method "matches" will return a false "true"
const rc = moment("2017-04-30").recur().every(1,"months");
console.log(rc.matches("05/30/2017")); //true
console.log(rc.matches("05/31/2017")); //true
Is this a bug? Or am I doing something wrong here? This is only happening, if the recurring start date is the last of a 30 day month or if we choose the last of February and match it with any other day of the month higher than 28.
The text was updated successfully, but these errors were encountered: