From d256f1fbd860aa1555952d5d42ada62362297d6f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 10 Jun 2013 13:25:34 +0400 Subject: [PATCH] atom: support --- classes/feeditem/atom.php | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- 2.39.5