Skip to content

Commit 2c9f972

Browse files
wofferlGrotax
authored andcommitted
don't use article dates from the future
Signed-off-by: Wolfgang <[email protected]>
1 parent 51a3a59 commit 2c9f972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FeedIo/Reader/Result/UpdateStats.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(
4242
) {
4343
$dates = $this->extractDates($feed);
4444
if (count($dates) > 0) {
45-
$this->newestItemDate = max($dates);
45+
$this->newestItemDate = min(max($dates), time());
4646
} else {
4747
$this->newestItemDate = $this->getFeedTimestamp();
4848
}

0 commit comments

Comments
 (0)