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.
1 parent f12c53c commit e32e8c9Copy full SHA for e32e8c9
app/code/Magento/Ui/view/base/web/js/form/element/date.js
@@ -134,11 +134,12 @@ define([
134
* @param {String} shiftedValue
135
*/
136
onShiftedValueChange: function (shiftedValue) {
137
- var value;
+ var value,
138
+ formattedValue;
139
140
if (shiftedValue) {
141
if (this.options.showsTime) {
- var formattedValue = moment(shiftedValue).format('YYYY-MM-DD HH:mm');
142
+ formattedValue = moment(shiftedValue).format('YYYY-MM-DD HH:mm');
143
value = moment.tz(formattedValue, this.storeTimeZone).tz('UTC').toISOString();
144
} else {
145
value = moment(shiftedValue, this.pickerDateTimeFormat);
0 commit comments