]> git.wh0rd.org Git - tt-rss.git/commitdiff
atom: support <published>
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 10 Jun 2013 09:25:34 +0000 (13:25 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 10 Jun 2013 09:25:34 +0000 (13:25 +0400)
classes/feeditem/atom.php

index c9f5b5c62df6ebfbca99d726963bb982f7a6034b..9680748f91aa4f03a6e6659dc102c05236c1ec89 100644 (file)
@@ -17,6 +17,12 @@ class FeedItem_Atom extends FeedItem_Common {
                        return strtotime($updated->nodeValue);
                }
 
+               $published = $this->elem->getElementsByTagName("published")->item(0);
+
+               if ($published) {
+                       return strtotime($published->nodeValue);
+               }
+
                $date = $this->xpath->query("dc:date", $this->elem)->item(0);
 
                if ($date) {