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

Commit

Permalink
fix(dayView): 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 ccb97cd commit e5a18fc
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 @@ -223,8 +223,11 @@ angular

var view = calendarUtils.getDayView({
events: events.map(function(event) { // hack required to work with event API
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('day'));
angular.extend(event, eventPeriod);
return event;
}),
viewDate: viewDate,
Expand Down

0 comments on commit e5a18fc

Please sign in to comment.