Use DATE_RSS constant in RSS pubDate
This commit is contained in:
parent
0340a18dc1
commit
2e8536cc04
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue