From ce5d234d636bea707b69d0c63192eecdf9e7d1d4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 1 Jun 2013 09:49:56 +0400 Subject: support dc:date elements in rss and atom feeds --- classes/feeditem/rss.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'classes/feeditem/rss.php') diff --git a/classes/feeditem/rss.php b/classes/feeditem/rss.php index e09a1fbba..e5960243c 100644 --- a/classes/feeditem/rss.php +++ b/classes/feeditem/rss.php @@ -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() { -- cgit v1.2.3-54-g00ecf