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.
1 parent f1c07c5 commit 1d86456Copy full SHA for 1d86456
app/code/Magento/Reports/Model/ResourceModel/Report/AbstractReport.php
@@ -384,6 +384,10 @@ public function getStoreTZOffsetQuery(
384
if (null === $from) {
385
$selectOldest = $connection->select()->from($table, ["MIN({$column})"]);
386
$from = $connection->fetchOne($selectOldest);
387
+ if (null === $from) {
388
+ $date = new \DateTime();
389
+ $from = $date->format('Y-m-d H:i:s');
390
+ }
391
}
392
393
$periods = $this->_getTZOffsetTransitions(
0 commit comments