(js) Fix month view when spawning six weeks

Fixes #3663
This commit is contained in:
Francis Lachapelle committed 2016-05-19 17:24:47 -04:00
1 parent cc28357553
commit ac13ef0005
2 files changed
+2 -1

No files matched your search

@@ -263,7 +263,7 @@
startDate.setDate(1);
startDate = startDate.beginOfWeek(firstDayOfWeek);
endDate = new Date();
endDate.setTime(startDate.getTime());
endDate.setTime(date.getTime());
endDate.setMonth(endDate.getMonth() + 1);
endDate.addDays(-1);
endDate = endDate.endOfWeek(firstDayOfWeek);