Skip to content

Commit e7b59ae

Browse files
committed
ACP2E-2990: Customer "created_at" date Not Converted to store time zone upon export
- Fixed the issue.
1 parent e6fc0ca commit e7b59ae

File tree

1 file changed

+7
-0
lines changed
  • app/code/Magento/CustomerImportExport/Model/Export

1 file changed

+7
-0
lines changed

app/code/Magento/CustomerImportExport/Model/Export/Customer.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class Customer extends \Magento\ImportExport\Model\Export\Entity\AbstractEav
2727

2828
const COLUMN_STORE = '_store';
2929

30+
const COLUMN_CREATED_AT = 'created_at';
31+
3032
/**
3133
* Attribute collection name
3234
*/
@@ -158,6 +160,11 @@ public function exportItem($item)
158160
$row = $this->_addAttributeValuesToRow($item);
159161
$row[self::COLUMN_WEBSITE] = $this->_websiteIdToCode[$item->getWebsiteId()];
160162
$row[self::COLUMN_STORE] = $this->_storeIdToCode[$item->getStoreId()];
163+
$row[self::COLUMN_CREATED_AT] = $this->_localeDate->formatDate(
164+
$row[self::COLUMN_CREATED_AT],
165+
\IntlDateFormatter::MEDIUM,
166+
true
167+
);
161168

162169
$this->getWriter()->writeRow($row);
163170
}

0 commit comments

Comments
 (0)