Skip to content
Snippets Groups Projects
Commit dc696658 authored by Dave Reid's avatar Dave Reid
Browse files

Issue #1008384 by twistor: Fixed feeds not pulling publication date with feed...

Issue #1008384 by twistor: Fixed feeds not pulling publication date with feed using dc:date and RSS 2.0.
parent 5f8b5fa3
No related branches found
No related tags found
No related merge requests found
......@@ -455,6 +455,9 @@ function _parser_common_syndication_RSS20_parse($feed_XML) {
if (!empty($news['pubDate'])) {
$item['timestamp'] = _parser_common_syndication_parse_date($news['pubDate']);
}
elseif (!empty($dc['date'])) {
$item['timestamp'] = _parser_common_syndication_parse_date($dc['date']);
}
else {
$item['timestamp'] = time();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment