Skip to content
Snippets Groups Projects
Commit d256f1fb authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

atom: support <published>

parent 0a561a43
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment