From e955834551d3ef496bd05c76826363d40b730ea4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 29 Jun 2010 14:26:10 +0400 Subject: support import and export of tt-rss preferences in OPML with DOMDocument OPML path --- functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 7320f0fac..4bf9cee4c 100644 --- a/functions.php +++ b/functions.php @@ -824,10 +824,11 @@ $rss_1_date = $item['dc']['date']; $atom_date = $item['issued']; if (!$atom_date) $atom_date = $item['updated']; - + if ($atom_date != "") $entry_timestamp = parse_w3cdtf($atom_date); if ($rss_1_date != "") $entry_timestamp = parse_w3cdtf($rss_1_date); if ($rss_2_date != "") $entry_timestamp = strtotime($rss_2_date); + } if ($entry_timestamp == "" || $entry_timestamp == -1 || !$entry_timestamp) { -- cgit v1.2.3-54-g00ecf