From: Andrew Dolgov Date: Mon, 10 Jun 2013 09:25:34 +0000 (+0400) Subject: atom: support X-Git-Tag: 1.8~9 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d256f1fbd860aa1555952d5d42ada62362297d6f;p=tt-rss.git atom: support --- diff --git a/classes/feeditem/atom.php b/classes/feeditem/atom.php index c9f5b5c6..9680748f 100644 --- a/classes/feeditem/atom.php +++ b/classes/feeditem/atom.php @@ -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) {