diff options
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/functions.php b/functions.php index 3d4a9849d..a3e3e8f97 100644 --- a/functions.php +++ b/functions.php @@ -7301,8 +7301,14 @@ if ($filter["inverse"]) $query = "NOT ($query)"; - if ($query) + if ($query) { + if (DB_TYPE == "pgsql") { + $query .= " AND ttrss_entries.date_entered > NOW() - INTERVAL '30 days'"; + } else { + $query .= " AND ttrss_entries.date_entered > DATE_SUB(NOW(), INTERVAL 30 DAY"; + } $query .= " AND "; + } return $query; } |