Skip to content

Commit fe3ad0a

Browse files
committed
ACP2E-4338: Deprecation warning: use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config)
1 parent 1f121c8 commit fe3ad0a

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ define([
4343
var date;
4444

4545
if (this.storeLocale !== undefined) {
46-
moment.locale(this.storeLocale, utils.extend({}, this.calendarConfig));
46+
moment.updateLocale(this.storeLocale, utils.extend({}, this.calendarConfig));
4747
}
4848

4949
date = moment.utc(this._super());

0 commit comments

Comments
 (0)