summaryrefslogtreecommitdiff
path: root/classes/feeditem/atom.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-06-10 13:25:34 +0400
committerAndrew Dolgov <[email protected]>2013-06-10 13:25:34 +0400
commitd256f1fbd860aa1555952d5d42ada62362297d6f (patch)
treeae4d783e687c835f983df4847fb01610a49e3412 /classes/feeditem/atom.php
parent0a561a4371a37da5b908a0fad9910435b3dd02f1 (diff)
atom: support <published>
Diffstat (limited to 'classes/feeditem/atom.php')
-rw-r--r--classes/feeditem/atom.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/feeditem/atom.php b/classes/feeditem/atom.php
index c9f5b5c62..9680748f9 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) {