Skip to content

Commit 4f75af4

Browse files
Merge branch 'master' of github.com:trentrichardson/jQuery-Timepicker-Addon
2 parents 984387b + c4402c7 commit 4f75af4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@
8888

8989
if (!this.defaults.timeOnly) {
9090
//the time should come after x number of characters and a space. x = at least the length of text specified by the date format
91-
regstr = '.{' + this.defaults.dateFormat.length + ',}\\s+' + regstr;
91+
var dp_dateFormat = $.datepicker._get(dp_inst, 'dateFormat');
92+
regstr = '.{' + dp_dateFormat.length + ',}\\s+' + regstr;
9293
}
9394

9495
var order = this.getFormatPositions();

0 commit comments

Comments
 (0)