Skip to content

Commit b462389

Browse files
committed
Fixes trentrichardson#396 by comparing in a case-insensitive manner.
1 parent 7b9ba9a commit b462389

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
@@ -970,7 +970,7 @@ $.datepicker.parseTime = function(timeFormat, timeString, options) {
970970
ampm = '';
971971
resTime.ampm = '';
972972
} else {
973-
ampm = $.inArray(treg[order.t], o.amNames) !== -1 ? 'AM' : 'PM';
973+
ampm = $.inArray(treg[order.t].toUpperCase(), o.amNames) !== -1 ? 'AM' : 'PM';
974974
resTime.ampm = o[ampm == 'AM' ? 'amNames' : 'pmNames'][0];
975975
}
976976
}

0 commit comments

Comments
 (0)