Skip to content

Commit 52fe73c

Browse files
author
Roman Ganin
committed
Merge remote-tracking branch 'origin/MAGETWO-45413' into develop
2 parents 071413e + 1d86456 commit 52fe73c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Reports/Model/ResourceModel/Report/AbstractReport.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,10 @@ public function getStoreTZOffsetQuery(
388388
if (null === $from) {
389389
$selectOldest = $connection->select()->from($table, ["MIN({$column})"]);
390390
$from = $connection->fetchOne($selectOldest);
391+
if (null === $from) {
392+
$date = new \DateTime();
393+
$from = $date->format('Y-m-d H:i:s');
394+
}
391395
}
392396

393397
$periods = $this->_getTZOffsetTransitions(

0 commit comments

Comments
 (0)