From babe6a0ab15fb9e9ab89bda3e8eacb384fe08827 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 16 Sep 2008 08:57:34 +0000 Subject: [PATCH] MDL-12563 Fixed RSS dates so that they are always GMT --- lib/rsslib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rsslib.php b/lib/rsslib.php index d615aab835..82f4fb5b8b 100644 --- a/lib/rsslib.php +++ b/lib/rsslib.php @@ -224,8 +224,8 @@ function rss_add_items($items) { $result .= rss_full_tag('title',3,false,strip_tags($item->title)); $result .= rss_full_tag('link',3,false,$item->link); $result .= rss_add_enclosures($item); - $result .= rss_full_tag('pubDate',3,false,date('D, d M Y H:i:s T',$item->pubdate)); - //Include the author if exists + $result .= rss_full_tag('pubDate',3,false,gmdate('D, d M Y H:i:s',$item->pubdate).' GMT'); # MDL-12563 + //Include the author if exists if (isset($item->author)) { //$result .= rss_full_tag('author',3,false,$item->author); //We put it in the description instead because it's more important -- 2.39.5