Skip to content

Commit

Permalink
Merge pull request #916 from pushpak/timefix-am/pm-patch
Browse files Browse the repository at this point in the history
Fix time selection to AM for startDate
  • Loading branch information
dangrossman committed Jan 19, 2016
2 parents a738e8a + 0787fe1 commit 3280597
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 @@ -1285,7 +1285,7 @@
if (this.timePicker) {
var hour = parseInt(this.container.find('.left .hourselect').val(), 10);
if (!this.timePicker24Hour) {
var ampm = cal.find('.ampmselect').val();
var ampm = this.container.find('.left .ampmselect').val();
if (ampm === 'PM' && hour < 12)
hour += 12;
if (ampm === 'AM' && hour === 12)
Expand Down

0 comments on commit 3280597

Please sign in to comment.