Skip to content

Commit 3d53741

Browse files
Add fix by doublerebel to determine ampm inside onTimeChnage
1 parent c6f5819 commit 3d53741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ $.extend(Timepicker.prototype, {
535535

536536
if (hour) {
537537
this.hour = parseFloat(hour).toFixed(0);
538-
this.ampm = ampm;
538+
if (this._defaults.ampm) this.ampm = ampm;
539539
}
540540
if (minute) this.minute = parseFloat(minute).toFixed(0);
541541
if (second) this.second = parseFloat(second).toFixed(0);

0 commit comments

Comments
 (0)