Skip to content

Commit

Permalink
(js) Fix month view when spawning six weeks
Browse files Browse the repository at this point in the history
Fixes #3663
  • Loading branch information
cgx committed May 19, 2016
1 parent cc28357 commit ac13ef0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -5,6 +5,7 @@ Bug fixes
- [web] fixed creation of chip on blur (sgTransformOnBlur directive)
- [web] fixed composition of new messages from Contacts module
- [web] fixed autocompletion of LDAP-based groups (#3673)
- [web] fixed month view when current month covers six weeks (#3663)

3.1.0 (2016-05-18)
------------------
Expand Down
2 changes: 1 addition & 1 deletion UI/WebServerResources/js/Scheduler/Component.service.js
Expand Up @@ -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);
Expand Down

0 comments on commit ac13ef0

Please sign in to comment.