]> git.wh0rd.org Git - tt-rss.git/commitdiff
catchup by date: go by date_entered
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 31 Mar 2013 08:41:28 +0000 (12:41 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 31 Mar 2013 08:41:28 +0000 (12:41 +0400)
include/functions.php

index 33014e2dfd5cb3ae43dcfa897ffd1d6ca91d7612..f2dd87bd3f9dcfa63d496f2a80b8d3a5377326eb 100644 (file)
                        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: