diff --git a/app/code/Magento/Reports/Model/Resource/Order/Collection.php b/app/code/Magento/Reports/Model/Resource/Order/Collection.php index 0dd3a60c83761..17ff425618942 100644 --- a/app/code/Magento/Reports/Model/Resource/Order/Collection.php +++ b/app/code/Magento/Reports/Model/Resource/Order/Collection.php @@ -900,8 +900,8 @@ public function addCreateAtPeriodFilter($period) $this->addFieldToFilter( $fieldToFilter, [ - 'from' => $from->format(\Magento\Framework\Stdlib\DateTime::DATETIME_INTERNAL_FORMAT), - 'to' => $to->format(\Magento\Framework\Stdlib\DateTime::DATETIME_INTERNAL_FORMAT) + 'from' => $from->format(\Magento\Framework\Stdlib\DateTime::DATETIME_PHP_FORMAT), + 'to' => $to->format(\Magento\Framework\Stdlib\DateTime::DATETIME_PHP_FORMAT) ] ); diff --git a/dev/tools/performance-toolkit/fixtures/orders.php b/dev/tools/performance-toolkit/fixtures/orders.php index 041fcea755125..db077ab2fbbdd 100644 --- a/dev/tools/performance-toolkit/fixtures/orders.php +++ b/dev/tools/performance-toolkit/fixtures/orders.php @@ -190,7 +190,9 @@ public function execute() $country = 'US'; $zip = '11111'; $phone = '911'; - $time = date("Y-m-d h:i:s"); + $dateStart = new \DateTime(); + $dateStart->setTimezone(new \DateTimeZone('Etc/UTC')); + $time = $dateStart->format(\Magento\Framework\Stdlib\DateTime::DATETIME_PHP_FORMAT); $simpleProductIdLen[0] = strlen($simpleProductId[0]($entityId)); $simpleProductIdLen[1] = strlen($simpleProductId[1]($entityId));