]> git.wh0rd.org - tt-rss.git/commitdiff
better handling of feeds with broken timestamps (closes #119)
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 9 Feb 2007 09:17:01 +0000 (10:17 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 9 Feb 2007 09:17:01 +0000 (10:17 +0100)
functions.php

index 0b69fb8de71f486a7af652a24bb5b03d87259cfe..1eb3ef2f7d7e396a766a15b04842558dd380d0bb 100644 (file)
                                if ($rss_1_date != "") $entry_timestamp = parse_w3cdtf($rss_1_date);
                                if ($rss_2_date != "") $entry_timestamp = strtotime($rss_2_date);
                                
-                               if ($entry_timestamp == "") {
+                               if ($entry_timestamp == "" || $entry_timestamp == -1 || !$entry_timestamp) {
                                        $entry_timestamp = time();
                                        $no_orig_date = 'true';
                                } else {