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

Commit

Permalink
fix(weekView): ensure events are always ordered by start date
Browse files Browse the repository at this point in the history
Closes #443
  • Loading branch information
Matt Lewis committed Sep 10, 2016
1 parent 91e7c3b commit 419626e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/services/calendarHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 419626e

Please sign in to comment.