diff options
author | Andrew Dolgov <[email protected]> | 2010-06-29 14:26:10 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-06-29 14:26:10 +0400 |
commit | e955834551d3ef496bd05c76826363d40b730ea4 (patch) | |
tree | 689b523cfcad597d51d5c3c350b42683806c000a /functions.php | |
parent | 50e7dd7d01de742006ebbac9322bc775d0f564a3 (diff) |
support import and export of tt-rss preferences in OPML with DOMDocument OPML path
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |