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

Is this date offset a bug? #95

Open
wktdev opened this issue Sep 10, 2020 · 0 comments
Open

Is this date offset a bug? #95

wktdev opened this issue Sep 10, 2020 · 0 comments

Comments

@wktdev
Copy link

wktdev commented Sep 10, 2020

In the documentation it says:

With both a start date and an end date set, you can generate all dates within that range that match the pattern (including the start/end dates).

var recurrence = moment().recur("01/01/2014", "01/07/2014").every(2).days();

// Outputs: ["01/01/2014", "01/03/2014", "01/05/2014", "01/07/2014"]
allDates = recurrence.all("L");

However, when I run the code the returned array starts at an offset like this:

["01/02/2014", "01/04/2014", "01/06/2014"]

Is this a bug or am I doing something wrong?

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