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

fix(yearView): generate correct new start date when dropping an event

  • Loading branch information...
Matt Lewis
Matt Lewis committed May 21, 2017
1 parent e92d647 commit 5da7d4bebd1767676212f5b7feddae83b39d80bd
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/directives/mwlCalendarYear.js
@@ -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({

0 comments on commit 5da7d4b

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