-
Notifications
You must be signed in to change notification settings - Fork 197
Open
Description
I have a date range that starts in June and runs through July and into August. Creating an iterable of months in the range yields only the first two months. August is not included.
Steps to Reproduce
const range = moment.range('2020-06-23', '2020-08-21');
const months = Array.from(range.by('months')).map(date => date.format('MMMM'));
console.log(months);
Expected Behavior
Array [ "June", "July", "August" ]
Current Behavior
Array [ "June", "July" ]
moment.js 2.27.0
moment-range 4.0.2
Unless I'm missing something this seems to be a bug. Explicitly setting { excludeEnd: false } doesn't work either.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels