We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 071413e + 1d86456 commit 52fe73cCopy full SHA for 52fe73c
app/code/Magento/Reports/Model/ResourceModel/Report/AbstractReport.php
@@ -388,6 +388,10 @@ public function getStoreTZOffsetQuery(
388
if (null === $from) {
389
$selectOldest = $connection->select()->from($table, ["MIN({$column})"]);
390
$from = $connection->fetchOne($selectOldest);
391
+ if (null === $from) {
392
+ $date = new \DateTime();
393
+ $from = $date->format('Y-m-d H:i:s');
394
+ }
395
}
396
397
$periods = $this->_getTZOffsetTransitions(
0 commit comments