Skip to content

Commit f4b7893

Browse files
Merge branch 'develop' into FearlessKiwis-MAGETWO-59785-IncorrectUrls-in-sitemap
* develop: MAGETWO-60765: Error is thrown while scheduling an update for a locale different that US_en MAGETWO-60765: Error is thrown while scheduling an update for a locale different that US_en MAGETWO-60002: Update functional test handler to avoid code duplication MAGETWO-62237: [Github][PR] Blank theme: Fix sorter icon changing #7628 MAGETWO-62237: [Github][PR] Blank theme: Fix sorter icon changing #7628 MAGETWO-60765: Error is thrown while scheduling an update for a locale different that US_en MAGETWO-60765: Error is thrown while scheduling an update for a locale different that US_en MAGETWO-60765: Error is thrown while scheduling an update for a locale different that US_en MAGETWO-60478: Invalid SalesInventory module version - 2.2
2 parents 13dbc0e + e6ccdcc commit f4b7893

File tree

9 files changed

+156
-97
lines changed

9 files changed

+156
-97
lines changed

app/code/Magento/SalesInventory/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"magento/framework": "100.2.*"
1111
},
1212
"type": "magento2-module",
13-
"version": "100.0.0-dev",
13+
"version": "100.2.0-dev",
1414
"license": [
1515
"OSL-3.0",
1616
"AFL-3.0"

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

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,12 @@ define([
5353
pickerDefaultDateFormat: 'MM/dd/y', // ICU Date Format
5454
pickerDefaultTimeFormat: 'h:mm a', // ICU Time Format
5555

56+
elementTmpl: 'ui/form/element/date',
57+
5658
/**
57-
* Moment compatible format used for moment conversion
58-
* of date from datePicker
59+
* Format needed by moment timezone for conversion
5960
*/
60-
momentFormat: 'MM/DD/YYYY',
61-
62-
elementTmpl: 'ui/form/element/date',
61+
timezoneFormat: 'YYYY-MM-DD HH:mm',
6362

6463
listens: {
6564
'value': 'onValueChange',
@@ -141,15 +140,17 @@ define([
141140
*/
142141
onShiftedValueChange: function (shiftedValue) {
143142
var value,
144-
formattedValue;
143+
formattedValue,
144+
momentValue;
145145

146146
if (shiftedValue) {
147+
momentValue = moment(shiftedValue, this.pickerDateTimeFormat);
148+
147149
if (this.options.showsTime) {
148-
formattedValue = moment(shiftedValue).format('YYYY-MM-DD HH:mm');
150+
formattedValue = moment(momentValue).format(this.timezoneFormat);
149151
value = moment.tz(formattedValue, this.storeTimeZone).tz('UTC').toISOString();
150152
} else {
151-
value = moment(shiftedValue, this.momentFormat);
152-
value = value.format(this.outputDateFormat);
153+
value = momentValue.format(this.outputDateFormat);
153154
}
154155
} else {
155156
value = '';
@@ -166,8 +167,6 @@ define([
166167
*/
167168
prepareDateTimeFormats: function () {
168169
this.pickerDateTimeFormat = this.options.dateFormat;
169-
this.momentFormat = this.options.dateFormat ?
170-
utils.convertToMomentFormat(this.options.dateFormat) : this.momentFormat;
171170

172171
if (this.options.showsTime) {
173172
this.pickerDateTimeFormat += ' ' + this.options.timeFormat;

app/design/frontend/Magento/blank/Magento_Catalog/web/css/source/module/_toolbar.less

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,11 @@
8181
);
8282
}
8383

84-
.sorter.sort-desc {
85-
&:before {
86-
content: @icon-arrow-down;
84+
.sorter {
85+
.sort-desc {
86+
&:before {
87+
content: @icon-arrow-down;
88+
}
8789
}
8890
}
8991

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
"magento/module-rss": "100.2.0-dev",
152152
"magento/module-rule": "100.2.0-dev",
153153
"magento/module-sales": "100.2.0-dev",
154-
"magento/module-sales-inventory": "100.0.0-dev",
154+
"magento/module-sales-inventory": "100.2.0-dev",
155155
"magento/module-sales-rule": "100.2.0-dev",
156156
"magento/module-sales-sequence": "100.2.0-dev",
157157
"magento/module-sample-data": "100.2.0-dev",

0 commit comments

Comments
 (0)