(js) Fix month view when spawning six weeks

Fixes #3663
This commit is contained in:
Francis Lachapelle
2016-05-19 17:24:47 -04:00
parent cc28357553
commit ac13ef0005
2 changed files with 2 additions and 1 deletions
@@ -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);