From 04d2f9c831b14f7295a3475746b9096402a055f0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 1 May 2013 17:38:16 +0400 Subject: add basic rss support --- classes/feeditem/atom.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'classes/feeditem/atom.php') diff --git a/classes/feeditem/atom.php b/classes/feeditem/atom.php index 560484eda..0d888c443 100644 --- a/classes/feeditem/atom.php +++ b/classes/feeditem/atom.php @@ -17,8 +17,11 @@ class FeedItem_Atom { } function get_date() { + $updated = $this->elem->getElementsByTagName("updated")->item(0); - + if ($updated) { + return strtotime($updated->nodeValue); + } } function get_link() { -- cgit v1.2.3