Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

fix(dayView): fix recurring events

Closes #504
  • Loading branch information...
Matt Lewis
Matt Lewis committed Dec 13, 2016
1 parent ccb97cd commit e5a18fcef2920b89c5530768808c715ab7fbb3bc
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/services/calendarHelper.js
@@ -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,

0 comments on commit e5a18fc

Please sign in to comment.
You can’t perform that action at this time.