File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
app/code/Magento/Ui/view/base/web/js/form/element Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -130,16 +130,15 @@ define([
130
130
if ( this . options . showsTime ) {
131
131
shiftedValue = moment . tz ( value , 'UTC' ) . tz ( this . storeTimeZone ) ;
132
132
} else {
133
- dateFormat = this . shiftedValue ( ) ? this . outputDateFormat : this . inputDateFormat ;
133
+ if ( this . storedDateFormat ) {
134
+ dateFormat = this . storedDateFormat ;
135
+ } else {
136
+ dateFormat = this . shiftedValue ( ) ? this . outputDateFormat : this . inputDateFormat ;
137
+ this . storedDateFormat = dateFormat ;
138
+ }
134
139
shiftedValue = moment ( value , dateFormat ) ;
135
140
}
136
141
137
- if ( this . storedDateFormat ) {
138
- shiftedValue = moment ( value , this . storedDateFormat ) ;
139
- } else {
140
- this . storedDateFormat = dateFormat ;
141
- }
142
-
143
142
shiftedValue = shiftedValue . format ( this . pickerDateTimeFormat ) ;
144
143
} else {
145
144
shiftedValue = '' ;
You can’t perform that action at this time.
0 commit comments