Skip to content

Commit 7ac170a

Browse files
author
Roman Lytvynenko
committed
MAGETWO-99832: Order grid saved view with Purchased date show Invalid date after switching views
1 parent 15f9a85 commit 7ac170a

File tree

1 file changed

+4
-5
lines changed
  • app/code/Magento/Ui/view/base/web/js/form/element

1 file changed

+4
-5
lines changed

app/code/Magento/Ui/view/base/web/js/form/element/date.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,12 @@ define([
129129
shiftedValue = moment(value, this.inputDateFormat);
130130
}
131131
shiftedValue = shiftedValue.format(this.pickerDateTimeFormat);
132-
} else {
133-
shiftedValue = this.shiftedValue();
134-
}
135132

136-
if (shiftedValue !== this.shiftedValue()) {
137-
this.shiftedValue(shiftedValue);
133+
if (shiftedValue !== this.shiftedValue()) {
134+
this.shiftedValue(shiftedValue);
135+
}
138136
}
137+
139138
},
140139

141140
/**

0 commit comments

Comments
 (0)