mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 19:51:29 +00:00
atom: support <published>
This commit is contained in:
@@ -17,6 +17,12 @@ class FeedItem_Atom extends FeedItem_Common {
|
|||||||
return strtotime($updated->nodeValue);
|
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);
|
$date = $this->xpath->query("dc:date", $this->elem)->item(0);
|
||||||
|
|
||||||
if ($date) {
|
if ($date) {
|
||||||
|
|||||||
Reference in New Issue
Block a user