mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 14:55:56 +00:00
support dc:date elements in rss and atom feeds
This commit is contained in:
@@ -16,6 +16,12 @@ class FeedItem_Atom extends FeedItem_Common {
|
|||||||
if ($updated) {
|
if ($updated) {
|
||||||
return strtotime($updated->nodeValue);
|
return strtotime($updated->nodeValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$date = $this->xpath->query("dc:date", $this->elem)->item(0);
|
||||||
|
|
||||||
|
if ($date) {
|
||||||
|
return strtotime($date->nodeValue);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_link() {
|
function get_link() {
|
||||||
|
|||||||
@@ -16,6 +16,12 @@ class FeedItem_RSS extends FeedItem_Common {
|
|||||||
if ($pubDate) {
|
if ($pubDate) {
|
||||||
return strtotime($pubDate->nodeValue);
|
return strtotime($pubDate->nodeValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$date = $this->xpath->query("dc:date", $this->elem)->item(0);
|
||||||
|
|
||||||
|
if ($date) {
|
||||||
|
return strtotime($date->nodeValue);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_link() {
|
function get_link() {
|
||||||
|
|||||||
Reference in New Issue
Block a user