Skip to content

Commit

Permalink
Merge pull request #1895 from phazei/revert-1588-patch-1
Browse files Browse the repository at this point in the history
Revert "Fix for issue #1587"
  • Loading branch information
dangrossman committed Apr 11, 2019
2 parents e62f029 + 98befdf commit 25edcdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daterangepicker.js
Expand Up @@ -489,7 +489,7 @@
this.endDate = moment(endDate);

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

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

0 comments on commit 25edcdd

Please sign in to comment.