Skip to content

Commit 8cbc6dc

Browse files
author
Trent
committed
Added ThomasLangston pull request from master for different case am/pm
1 parent 3649e6a commit 8cbc6dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,8 @@ $.extend(Timepicker.prototype, {
660660
.replace(/ss/g, ((time.second < 10) ? '0' : '') + time.second)
661661
.replace(/s/g, time.second)
662662
.replace(/TT/g, time.ampm.toUpperCase())
663+
.replace(/Tt/g, time.ampm.toUpperCase())
664+
.replace(/tT/g, time.ampm.toLowerCase())
663665
.replace(/tt/g, time.ampm.toLowerCase())
664666
.replace(/T/g, time.ampm.charAt(0).toUpperCase())
665667
.replace(/t/g, time.ampm.charAt(0).toLowerCase())
@@ -810,6 +812,8 @@ $.datepicker._doKeyPress = function(event) {
810812
datetimeChars = tp_inst._defaults.timeFormat.toString()
811813
.replace(/[hms]/g, '')
812814
.replace(/TT/g, ampm ? 'APM' : '')
815+
.replace(/Tt/g, ampm ? 'AaPpMm' : '')
816+
.replace(/tT/g, ampm ? 'AaPpMm' : '')
813817
.replace(/T/g, ampm ? 'AP' : '')
814818
.replace(/tt/g, ampm ? 'apm' : '')
815819
.replace(/t/g, ampm ? 'ap' : '') +

0 commit comments

Comments
 (0)