Skip to content

Fix for issue #396 #397

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixes #396
Fixes #396 by comparing in a case-insensitive manner.
  • Loading branch information
justinvp committed Jul 28, 2012
commit b462389de02839b58c96a9d9427e6651533d5ef1
2 changes: 1 addition & 1 deletion jquery-ui-timepicker-addon.js
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ $.datepicker.parseTime = function(timeFormat, timeString, options) {
ampm = '';
resTime.ampm = '';
} else {
ampm = $.inArray(treg[order.t], o.amNames) !== -1 ? 'AM' : 'PM';
ampm = $.inArray(treg[order.t].toUpperCase(), o.amNames) !== -1 ? 'AM' : 'PM';
resTime.ampm = o[ampm == 'AM' ? 'amNames' : 'pmNames'][0];
}
}
Expand Down