Skip to content
This repository has been archived by the owner on Jun 19, 2018. It is now read-only.

Commit

Permalink
fix(monthView): fix recurring events
Browse files Browse the repository at this point in the history
Closes #504
  • Loading branch information
Matt Lewis committed Dec 13, 2016
1 parent 1d79f85 commit ccb97cd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/services/calendarHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,11 @@ angular

// hack required to work with the calendar-utils api
events.forEach(function(event) {
event.start = event.startsAt;
event.end = event.endsAt;
var eventPeriod = getRecurringEventPeriod({
start: moment(event.startsAt),
end: moment(event.endsAt || event.startsAt)
}, event.recursOn, moment(viewDate).startOf('month'));
angular.extend(event, eventPeriod);
});

var view = calendarUtils.getMonthView({
Expand Down

0 comments on commit ccb97cd

Please sign in to comment.