Skip to content

Commit 72a5dd0

Browse files
authored
add locale date format option
add option to fallback to locale date format configuration
1 parent e6167ad commit 72a5dd0

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Ui/view/base/web/js/grid/columns

1 file changed

+2
-2
lines changed

app/code/Magento/Ui/view/base/web/js/grid/columns/date.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ define([
2525
*/
2626
initConfig: function () {
2727
this._super();
28-
29-
this.dateFormat = utils.normalizeDate(this.dateFormat);
28+
29+
this.dateFormat = utils.normalizeDate(this.dateFormat ? this.dateFormat : this.options.dateFormat);
3030

3131
return this;
3232
},

0 commit comments

Comments
 (0)