Skip to content

Commit 0851f32

Browse files
author
Trent
committed
fixed date format bug
1 parent 675043d commit 0851f32

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
@@ -87,7 +87,8 @@
8787

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

9394
var order = this.getFormatPositions();

0 commit comments

Comments
 (0)