Skip to content

Commit e32e8c9

Browse files
committed
MAGETWO-55867: Incorrect Staging Date Time
- Cleaned up L2 build
1 parent f12c53c commit e32e8c9

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,12 @@ define([
134134
* @param {String} shiftedValue
135135
*/
136136
onShiftedValueChange: function (shiftedValue) {
137-
var value;
137+
var value,
138+
formattedValue;
138139

139140
if (shiftedValue) {
140141
if (this.options.showsTime) {
141-
var formattedValue = moment(shiftedValue).format('YYYY-MM-DD HH:mm');
142+
formattedValue = moment(shiftedValue).format('YYYY-MM-DD HH:mm');
142143
value = moment.tz(formattedValue, this.storeTimeZone).tz('UTC').toISOString();
143144
} else {
144145
value = moment(shiftedValue, this.pickerDateTimeFormat);

0 commit comments

Comments
 (0)