From: Andrew Dolgov Date: Fri, 9 Feb 2007 09:17:01 +0000 (+0100) Subject: better handling of feeds with broken timestamps (closes #119) X-Git-Tag: 1.2.8~8 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2e93084687cc98bc5a862af55a60a167513c632c;p=tt-rss.git better handling of feeds with broken timestamps (closes #119) --- diff --git a/functions.php b/functions.php index 0b69fb8d..1eb3ef2f 100644 --- a/functions.php +++ b/functions.php @@ -468,7 +468,7 @@ 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 {