Skip to content

Commit 5a4585b

Browse files
committed
MAGETWO-58516: Product catalog Import/export – Date & Timezone issue. Other fields.
- fixes
1 parent a036e15 commit 5a4585b

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/CatalogImportExport/Model/Export

1 file changed

+3
-3
lines changed

app/code/Magento/CatalogImportExport/Model/Export/Product.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Magento\CatalogImportExport\Model\Export;
77

8+
use Magento\Framework\DB\Ddl\Table;
89
use Magento\ImportExport\Model\Import;
910
use \Magento\Store\Model\Store;
1011
use \Magento\CatalogImportExport\Model\Import\Product as ImportProduct;
@@ -921,9 +922,8 @@ protected function collectRawData()
921922
}
922923
$fieldName = isset($this->_fieldsMap[$code]) ? $this->_fieldsMap[$code] : $code;
923924

924-
if ($this->_attributeTypes[$code] === 'datetime') {
925-
if (
926-
in_array($code, $this->dateAttrCodes)
925+
if ($this->_attributeTypes[$code] === Table::TYPE_DATETIME) {
926+
if (in_array($code, $this->dateAttrCodes)
927927
|| in_array($code, $this->userDefinedAttributes)
928928
) {
929929
$attrValue = $this->_localeDate->formatDateTime(

0 commit comments

Comments
 (0)