mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-08-18 12:07:27 +02:00
better handling of feeds with broken timestamps (closes #119)
This commit is contained in:
parent
89fbb3bc82
commit
2e93084687
@ -468,7 +468,7 @@
|
|||||||
if ($rss_1_date != "") $entry_timestamp = parse_w3cdtf($rss_1_date);
|
if ($rss_1_date != "") $entry_timestamp = parse_w3cdtf($rss_1_date);
|
||||||
if ($rss_2_date != "") $entry_timestamp = strtotime($rss_2_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();
|
$entry_timestamp = time();
|
||||||
$no_orig_date = 'true';
|
$no_orig_date = 'true';
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user