Fixes #7037 -- Fix CarbonImmutable error on stats overview page.
This commit is contained in:
parent
bee576b5e7
commit
08c5468562
|
@ -65,8 +65,7 @@ final class ChartsAction extends AbstractReportAction
|
|||
$daysOfWeek = [];
|
||||
|
||||
foreach ($dailyStats as $stat) {
|
||||
/** @var CarbonImmutable $statTime */
|
||||
$statTime = $stat['moment'];
|
||||
$statTime = CarbonImmutable::instance($stat['moment']);
|
||||
$statTime = $statTime->shiftTimezone($stationTz);
|
||||
|
||||
$avgRow = new stdClass();
|
||||
|
@ -175,8 +174,7 @@ final class ChartsAction extends AbstractReportAction
|
|||
}
|
||||
|
||||
foreach ($hourlyStats as $stat) {
|
||||
/** @var CarbonImmutable $statTime */
|
||||
$statTime = $stat['moment'];
|
||||
$statTime = CarbonImmutable::instance($stat['moment']);
|
||||
$statTime = $statTime->shiftTimezone($stationTz);
|
||||
|
||||
$hour = $statTime->hour;
|
||||
|
|
Loading…
Reference in New Issue