atom: support <published>

This commit is contained in:
Andrew Dolgov 2013-06-10 13:25:34 +04:00
parent 0a561a4371
commit d256f1fbd8

View 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) {