Skip to content

Commit

Permalink
MAGETWO-37325: [GITHUB] magento dashboard revenue ,shipping ,qty,tax …
Browse files Browse the repository at this point in the history
…all are 0. #1269
  • Loading branch information
slopukhov authored and Olexii Korshenko committed May 15, 2015
1 parent e250f2d commit 052067c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Reports/Model/Resource/Order/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
]
);

Expand Down
4 changes: 3 additions & 1 deletion dev/tools/performance-toolkit/fixtures/orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 052067c

Please sign in to comment.