Skip to content

Commit

Permalink
Revert "Fix for issue #1587"
Browse files Browse the repository at this point in the history
  • Loading branch information
phazei committed Dec 26, 2018
1 parent bc645d9 commit 98befdf
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 98befdf

Please sign in to comment.