Skip to content

Commit

Permalink
ContentLoader: Fix updating spouts on PHP < 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Oct 18, 2022
1 parent 9361924 commit d6e9bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/ContentLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function fetch($source) {
$itemDate = new \DateTimeImmutable();
}
if ($itemDate < $minDate) {
$this->logger->debug('item "' . $item->getTitle() . '" (' . $itemDate->format(\DateTimeInterface::ATOM) . ') older than ' . $this->configuration->itemsLifetime . ' days');
$this->logger->debug('item "' . $item->getTitle() . '" (' . $itemDate->format(\DateTime::ATOM) . ') older than ' . $this->configuration->itemsLifetime . ' days');
continue;
}

Expand Down

0 comments on commit d6e9bc8

Please sign in to comment.