File tree 1 file changed +2
-2
lines changed
app/code/Magento/CatalogImportExport/Model/Import
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1815,7 +1815,7 @@ protected function _saveProducts()
1815
1815
) {
1816
1816
$ attrValue = $ this ->dateTime ->formatDate ($ attrValue , false );
1817
1817
} elseif ('datetime ' == $ attribute ->getBackendType () && strtotime ($ attrValue )) {
1818
- $ attrValue = $ this -> dateTime -> gmDate (
1818
+ $ attrValue = gmdate (
1819
1819
'Y-m-d H:i:s ' ,
1820
1820
$ this ->_localeDate ->date ($ attrValue )->getTimestamp ()
1821
1821
);
@@ -2240,7 +2240,7 @@ protected function _saveStockItem()
2240
2240
$ stockItemDo ->setData ($ row );
2241
2241
$ row ['is_in_stock ' ] = $ this ->stockStateProvider ->verifyStock ($ stockItemDo );
2242
2242
if ($ this ->stockStateProvider ->verifyNotification ($ stockItemDo )) {
2243
- $ row ['low_stock_date ' ] = $ this -> dateTime -> gmDate (
2243
+ $ row ['low_stock_date ' ] = gmdate (
2244
2244
'Y-m-d H:i:s ' ,
2245
2245
(new \DateTime ())->getTimestamp ()
2246
2246
);
You can’t perform that action at this time.
0 commit comments