1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 13:15:55 +00:00

better handling of feeds with broken timestamps (closes #119)

This commit is contained in:
Andrew Dolgov
2007-02-09 10:17:01 +01:00
parent 89fbb3bc82
commit 2e93084687

View File

@@ -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 {