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

fix(weekView): ensure events are always ordered by start date

Closes #443
  • Loading branch information...
Matt Lewis
Matt Lewis committed Sep 10, 2016
1 parent 91e7c3b commit 419626e60c5e8c319b8c7175083dfad75b210497
Showing with 3 additions and 3 deletions.
  1. +1 −1 package.json
  2. +2 −2 src/services/calendarHelper.js
@@ -19,7 +19,7 @@
"angular": ">=1.3.0",
"angular-mocks": ">=1.3.0",
"bootstrap": "^3.3.6",
"calendar-utils": "0.0.23",
"calendar-utils": "0.0.25",
"commitizen": "~2.8.1",
"concurrently": "~2.2.0",
"conventional-changelog": "~1.1.0",
@@ -184,8 +184,8 @@ angular
var weekViewStart = moment(startOfWeek).startOf('day');

var eventPeriod = getRecurringEventPeriod({
start: moment(event.startsAt).startOf('day'),
end: moment(event.endsAt || event.startsAt).startOf('day').add(1, 'second')
start: moment(event.startsAt),
end: moment(event.endsAt || event.startsAt).add(1, 'second')
}, event.recursOn, weekViewStart);

eventPeriod.originalEvent = event;

0 comments on commit 419626e

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