Skip to content

Commit

Permalink
Merge pull request #1588 from diegolido/patch-1
Browse files Browse the repository at this point in the history
Fix for issue #1587
  • Loading branch information
dangrossman committed Dec 12, 2017
2 parents 5d6d8a6 + 8658968 commit ebf3e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daterangepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@
this.endDate = moment(endDate);

if (!this.timePicker)
this.endDate = this.endDate.endOf('day');
this.endDate = this.endDate.add(1,'d').startOf('day').subtract(1,'second');

if (this.timePicker && this.timePickerIncrement)
this.endDate.minute(Math.round(this.endDate.minute() / this.timePickerIncrement) * this.timePickerIncrement);
Expand Down

0 comments on commit ebf3e97

Please sign in to comment.