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 25, 2024
1 parent 10d1941 commit b6a2e2b
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 b6a2e2b

Please sign in to comment.