mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-12563 Fixed RSS dates so that they are always GMT
This commit is contained in:
parent
658837bb75
commit
babe6a0ab1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user