In the moment-recur documentation the following statement is made and code is given.
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 I get an offset in the array that looks like this:
["01/02/2014", "01/04/2014", "01/06/2014"]
I am curious if i am doing something wrong or if it is a bug in the library.
EDIT
When I create a fresh instance of create-react-app the above error does not happen. However, when i run it in my code for the app I am working on I get the error. To troubleshoot, I placed the above code at the top level app.js file to see if the problem still occurs. It does. Below is a screen shot.