From 0340a18dc1bcffeb3386b41b8f4aaad83170b1b2 Mon Sep 17 00:00:00 2001 From: Max Kostikov <max@kostikov.co> Date: Sun, 15 Sep 2019 14:52:50 +0200 Subject: [PATCH] Ignore locale in date --- bl-plugins/rss/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bl-plugins/rss/plugin.php b/bl-plugins/rss/plugin.php index a7a1d3d9..c2fce8af 100644 --- a/bl-plugins/rss/plugin.php +++ b/bl-plugins/rss/plugin.php @@ -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>'.$page->date(DATE_RSS).'</pubDate>'; + $xml .= '<pubDate>'.date('r',strtotime($page->getValue('dateRaw'))).'</pubDate>'; $xml .= '<guid isPermaLink="false">'.$page->uuid().'</guid>'; $xml .= '</item>'; } catch (Exception $e) {