From 94828a8b12a7e51c2e49c766e80f458467a3e588 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 31 Mar 2013 12:41:28 +0400 Subject: [PATCH] catchup by date: go by date_entered --- include/functions.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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: -- 2.39.5