Skip to content

Commit d2111d8

Browse files
committed
Revert "AC-14431: Order items order_date wrong formatting"
This reverts commit b30aac8.
1 parent 105abee commit d2111d8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Sales/OrderDateFormattingTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public function testOrderDateWithInvalidCreatedAt()
8989
$date = \DateTime::createFromFormat($expectedFormat, $dateString);
9090
$isValid = $date && $date->format($expectedFormat) === $dateString;
9191
$this->assertTrue($isValid, "Date format is not valid: $dateString");
92+
9293
}
9394

9495
/**

dev/tests/api-functional/testsuite/Magento/GraphQl/Sales/RetrieveOrdersByOrderNumberTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Magento\Framework\Api\SearchCriteriaBuilder;
1212
use Magento\Framework\Exception\AuthenticationException;
1313
use Magento\Framework\Registry;
14+
use Magento\Framework\Stdlib\DateTime;
1415
use Magento\Framework\Stdlib\DateTime\TimezoneInterface;
1516
use Magento\GraphQl\GetCustomerAuthenticationHeader;
1617
use Magento\Sales\Api\OrderRepositoryInterface;
@@ -508,7 +509,7 @@ public function testGetCustomerDescendingSortedOrders()
508509
for ($i = 1; $i <= 3; $i++) {
509510
$orderNumber = $this->fixtures->get('or' . $i)->getIncrementId();
510511
$orderCreatedAt = $this->timezone->date($this->fixtures->get('or' . $i)->getCreatedAt())
511-
->format('d/m/Y H:i:s');
512+
->format(DateTime::DATETIME_PHP_FORMAT);
512513
$orderNumberCreatedAtExpected[$orderNumber] = $orderCreatedAt;
513514
}
514515

0 commit comments

Comments
 (0)