From 30123fe630da0c9882056de91460b2dd5912ad47 Mon Sep 17 00:00:00 2001 From: saperduper Date: Mon, 25 Mar 2013 18:49:11 +0200 Subject: [PATCH] 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. --- include/rssfuncs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5