Skip to content

Commit

Permalink
Bug fix: using wrong AM/PM selector
Browse files Browse the repository at this point in the history
  • Loading branch information
dangrossman committed Oct 27, 2015
1 parent 8841603 commit bc34be3
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 @@ -567,7 +567,7 @@
minute = parseInt(this.container.find('.right .minuteselect').val(), 10);
second = this.timePickerSeconds ? parseInt(this.container.find('.right .secondselect').val(), 10) : 0;
if (!this.timePicker24Hour) {
var ampm = this.container.find('.left .ampmselect').val();
var ampm = this.container.find('.right .ampmselect').val();
if (ampm === 'PM' && hour < 12)
hour += 12;
if (ampm === 'AM' && hour === 12)
Expand Down

0 comments on commit bc34be3

Please sign in to comment.