feed: set item date. fixes #2960

The date was completely missing in the recent refactor. This readds it
and uses a unix timestamp as suggested in #2960
This commit is contained in:
Andreas Gohr 2024-01-26 10:17:07 +01:00
parent a94c17eeed
commit 4554d54da6
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ class FeedCreator
if ($this->options->get('show_summary') && $proc->getSummary()) {
$item->title .= ' - ' . $proc->getSummary();
}
$item->date = $proc->getRev();
[$item->authorEmail, $item->author] = $proc->getAuthor();
$item->link = $proc->getURL($this->options->get('link_to'));
$item->description = $proc->getBody($this->options->get('item_content'));