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

Commit

Permalink
fix(yearView): generate correct new start date when dropping an event
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Lewis committed May 21, 2017
1 parent e92d647 commit 5da7d4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/directives/mwlCalendarYear.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ angular

vm.handleEventDrop = function(event, newMonthDate) {
var newStart = moment(event.startsAt)
.month(moment(newMonthDate).month())
.year(moment(newMonthDate).year());
.year(moment(newMonthDate).year())
.month(moment(newMonthDate).month());
var newEnd = calendarHelper.adjustEndDateFromStartDiff(event.startsAt, newStart, event.endsAt);

vm.onEventTimesChanged({
Expand Down

0 comments on commit 5da7d4b

Please sign in to comment.