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
1 changed files with 1 additions and 1 deletions

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 {