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

Commit

Permalink
fix(onDateRangeSelect): fix behaviour after bug was introduced in pre…
Browse files Browse the repository at this point in the history
…vious commit
  • Loading branch information
Matt Lewis committed Jul 27, 2016
1 parent ea49132 commit e0c260c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/directives/mwlCalendarHourList.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ angular
};

vm.getClickedDate = function(baseDate, minutes, days) {
return moment(baseDate).clone().add(minutes, 'minutes').add(days || 0, 'days').toDate();
return moment(baseDate).clone().startOf('hour').add(minutes, 'minutes').add(days || 0, 'days').toDate();
};

vm.onDragSelectStart = function(date, dayIndex) {
Expand Down

0 comments on commit e0c260c

Please sign in to comment.