Use DATE_RSS constant in RSS pubDate

This commit is contained in:
Max Kostikov 2019-09-16 11:57:51 +02:00 committed by GitHub
parent 0340a18dc1
commit 2e8536cc04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ class pluginRSS extends Plugin {
$xml .= '<title>'.$page->title().'</title>';
$xml .= '<link>'.$this->urlRSS($page->permalink()).'</link>';
$xml .= '<description>'.Sanitize::html($page->contentBreak()).'</description>';
$xml .= '<pubDate>'.date('r',strtotime($page->getValue('dateRaw'))).'</pubDate>';
$xml .= '<pubDate>'.date(DATE_RSS,strtotime($page->getValue('dateRaw'))).'</pubDate>';
$xml .= '<guid isPermaLink="false">'.$page->uuid().'</guid>';
$xml .= '</item>';
} catch (Exception $e) {