We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ed2eea6 + 5c2a936 commit 1ddd346Copy full SHA for 1ddd346
app/code/Magento/Ui/view/base/web/js/lib/knockout/bindings/datepicker.js
@@ -51,7 +51,12 @@ define([
51
52
observable() && $(el).datepicker(
53
'setDate',
54
- moment(observable(), utils.normalizeDate(config.options.dateFormat)).toDate()
+ moment(
55
+ observable(),
56
+ utils.normalizeDate(
57
+ options.dateFormat + (options.showsTime ? ' ' + options.timeFormat : '')
58
+ )
59
+ ).toDate()
60
);
61
62
$(el).blur();
0 commit comments