Skip to content
Snippets Groups Projects
Commit ce5d234d authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

support dc:date elements in rss and atom feeds

parent 67f4fe17
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,12 @@ class FeedItem_Atom extends FeedItem_Common {
if ($updated) {
return strtotime($updated->nodeValue);
}
$date = $this->xpath->query("dc:date", $this->elem)->item(0);
if ($date) {
return strtotime($date->nodeValue);
}
}
function get_link() {
......
......@@ -16,6 +16,12 @@ class FeedItem_RSS extends FeedItem_Common {
if ($pubDate) {
return strtotime($pubDate->nodeValue);
}
$date = $this->xpath->query("dc:date", $this->elem)->item(0);
if ($date) {
return strtotime($date->nodeValue);
}
}
function get_link() {
......
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