Skip to content

Commit 7d5b431

Browse files
committed
ACP2E-2990: Customer "created_at" date Not Converted to store time zone upon export
- Fixed the static test failure.
1 parent 4603115 commit 7d5b431

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/CustomerImportExport/Plugin/Model/Export/FormatCustomerCreatedAt.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* from Adobe.
1414
* ***********************************************************************
1515
*/
16+
declare(strict_types=1);
17+
1618
namespace Magento\CustomerImportExport\Plugin\Model\Export;
1719

1820
use Magento\CustomerImportExport\Model\Export\Customer;
@@ -45,8 +47,7 @@ public function __construct(
4547
public function beforeExportItem(
4648
Customer $subject,
4749
Item $item
48-
): void
49-
{
50+
): void {
5051
$item->setData(
5152
self::COLUMN_CREATED_AT,
5253
$this->localeDate->formatDate(

dev/tests/integration/testsuite/Magento/CustomerImportExport/Model/Export/CustomerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* Tests for customer export model.
2424
*
2525
* @magentoAppArea adminhtml
26+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2627
*/
2728
class CustomerTest extends \PHPUnit\Framework\TestCase
2829
{

0 commit comments

Comments
 (0)