Skip to content

Commit

Permalink
Fix how pdoAggregator logs the day that was aggregated.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronweeden committed Oct 29, 2024
1 parent 5909348 commit a779c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/ETL/Aggregator/pdoAggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ protected function processAggregationPeriods(
$numPeriodsProcessed++;
$periodDisplay = $periodId;
if ( 'day' === $aggregationUnit ) {
$dayDateTime = \DateTime::createFromFormat('Y00z', $periodId);
$dayDateTime = \DateTime::createFromFormat('Y00z', $periodId - 1);
$periodDisplay .= ' ' . $dayDateTime->format('d m Y');
}
$this->logger->info("Aggregated $aggregationUnit ("
Expand Down

0 comments on commit a779c92

Please sign in to comment.