Skip to content

Commit a9f42f9

Browse files
committed
MC-5233: DateTime product attributes support
1 parent 5a01404 commit a9f42f9

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ define([
4040
* @returns {String} Formatted date.
4141
*/
4242
getLabel: function (value, format) {
43-
var date = moment.utc(this._super());
43+
var date;
4444

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

49+
date = moment.utc(this._super());
50+
4951
if (!_.isUndefined(this.timezone)) {
5052
date = date.tz(this.timezone);
5153
}

0 commit comments

Comments
 (0)