Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Fixed usage of addDuration (which returns void)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergio-mena committed Mar 13, 2018
1 parent 166cf0d commit 2096b84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions calendar/interface/exchangeCalendar/mivExchangeCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2597,7 +2597,8 @@ calExchangeCalendar.prototype = {
let offset = cal.createDuration();
offset.weeks = -5;

aRangeStart = cal.now().addDuration(offset);
aRangeStart = cal.now()
aRangeStart.addDuration(offset);

// If cache already contains a bigger range, use it
if (this.startDate
Expand All @@ -2614,7 +2615,8 @@ calExchangeCalendar.prototype = {
let offset = cal.createDuration();
offset.weeks = 5;

aRangeEnd = cal.now().addDuration(offset);
aRangeEnd = cal.now()
aRangeEnd.addDuration(offset);

// If cache already contains a bigger range, use it
if ((this.endDate) && (this.endDate.compare(aRangeEnd) > 0)) {
Expand Down

0 comments on commit 2096b84

Please sign in to comment.