From: Andrew Dolgov Date: Sun, 31 Mar 2013 08:41:28 +0000 (+0400) Subject: catchup by date: go by date_entered X-Git-Tag: 1.7.6~117 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=94828a8b12a7e51c2e49c766e80f458467a3e588;p=tt-rss.git catchup by date: go by date_entered --- diff --git a/include/functions.php b/include/functions.php index 33014e2d..f2dd87bd 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1016,23 +1016,23 @@ switch ($mode) { case "1day": if (DB_TYPE == "pgsql") { - $date_qpart = "updated < NOW() - INTERVAL '1 day' "; + $date_qpart = "date_entered < NOW() - INTERVAL '1 day' "; } else { - $date_qpart = "updated < DATE_SUB(NOW(), INTERVAL 1 WEEK) "; + $date_qpart = "date_entered < DATE_SUB(NOW(), INTERVAL 1 WEEK) "; } break; case "1week": if (DB_TYPE == "pgsql") { - $date_qpart = "updated < NOW() - INTERVAL '1 week' "; + $date_qpart = "date_entered < NOW() - INTERVAL '1 week' "; } else { - $date_qpart = "updated < DATE_SUB(NOW(), INTERVAL 1 WEEK) "; + $date_qpart = "date_entered < DATE_SUB(NOW(), INTERVAL 1 WEEK) "; } break; case "2weeks": if (DB_TYPE == "pgsql") { - $date_qpart = "updated < NOW() - INTERVAL '2 week' "; + $date_qpart = "date_entered < NOW() - INTERVAL '2 week' "; } else { - $date_qpart = "updated < DATE_SUB(NOW(), INTERVAL 2 WEEK) "; + $date_qpart = "date_entered < DATE_SUB(NOW(), INTERVAL 2 WEEK) "; } break; default: