Skip to content

Commit 7f0f15a

Browse files
committed
MAGETWO-55867: Incorrect Staging Date Time
- Converted the date to ISO string
1 parent 252c686 commit 7f0f15a

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ define([
139139
if (shiftedValue) {
140140
if (this.options.showsTime) {
141141
var formattedValue = moment(shiftedValue).format('YYYY-MM-DD HH:mm');
142-
value = moment.tz(formattedValue, this.storeTimeZone).tz('UTC').format();
142+
value = moment.tz(formattedValue, this.storeTimeZone).tz('UTC').toISOString();
143143
} else {
144144
value = moment(shiftedValue, this.pickerDateTimeFormat);
145145
value = value.format(this.outputDateFormat);

0 commit comments

Comments
 (0)