From: saperduper Date: Mon, 25 Mar 2013 16:49:11 +0000 (+0200) Subject: Handle future pubDate X-Git-Tag: 1.7.6~279^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=30123fe630da0c9882056de91460b2dd5912ad47;p=tt-rss.git 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. --- diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 11aa0e4b..130f9142 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -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 {