1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-24 11:11:27 +00:00

Handle future pubDate

Posts with pubDate in the future always appear at the top, which is ruining the
whole "newest at top" idea. One way to handle this is to use time() instead.
This is what google reader does and seems reasonable.
This commit is contained in:
saperduper
2013-03-25 18:49:11 +02:00
parent 45b9c6fbcb
commit 30123fe630

View File

@@ -435,7 +435,7 @@
$entry_timestamp = strtotime($item->get_date());
if ($entry_timestamp == -1 || !$entry_timestamp) {
if ($entry_timestamp == -1 || !$entry_timestamp || $entry_timestamp > time()) {
$entry_timestamp = time();
$no_orig_date = 'true';
} else {