Skip to content
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

.matches returns incorrectly #97

Open
anniegiang opened this issue Feb 26, 2021 · 0 comments
Open

.matches returns incorrectly #97

anniegiang opened this issue Feb 26, 2021 · 0 comments

Comments

@anniegiang
Copy link

const startDate = moment('03/08/2021');
const twoWeeksLater =  moment('03/22/2021');

const r1 = startDate.recur().every(2, 'weeks');
const r2 = startDate.recur().every(14, 'days');

 // both should be true but prints false;

console.log(r1.matches(twoWeeksLater)); // false
console.log(r2.matches(twoWeeksLater)); // false


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant