Skip to content

Commit 1905a8d

Browse files
Fixes trentrichardson#547 - sometimes doest detect ampm when hh:mm TT
1 parent 8303530 commit 1905a8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery-ui-timepicker-addon.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,7 @@
16991699
* Returns true if should use ampm, false if not
17001700
*/
17011701
var useAmpm = function(timeFormat){
1702-
return (timeFormat.indexOf('t') !== -1 && timeFormat.indexOf('h') !== -1);
1702+
return ((timeFormat.indexOf('t') !== -1 || timeFormat.indexOf('T') !== -1) && timeFormat.indexOf('h') !== -1);
17031703
};
17041704

17051705
/*

0 commit comments

Comments
 (0)