From df2aa7b9a7ab120864054b734826e2db6806fb23 Mon Sep 17 00:00:00 2001 From: Carolyn Commons Date: Fri, 6 Oct 2017 08:48:40 -0400 Subject: [PATCH] Filter dates greater than date_after (#2115) * changing post filter date_after to be greater than, rather than greater than or equal to. --- application/classes/Ushahidi/Repository/Post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/classes/Ushahidi/Repository/Post.php b/application/classes/Ushahidi/Repository/Post.php index 1446eea9db..3ee8eaae54 100644 --- a/application/classes/Ushahidi/Repository/Post.php +++ b/application/classes/Ushahidi/Repository/Post.php @@ -361,7 +361,7 @@ protected function setSearchConditions(SearchData $search) $date_after = date_create($search->date_after, new DateTimeZone('UTC')); // Convert to UTC (needed in case date came with a tz) $date_after->setTimezone(new DateTimeZone('UTC')); - $query->where("$table.post_date", '>=', $date_after->format('Y-m-d H:i:s')); + $query->where("$table.post_date", '>', $date_after->format('Y-m-d H:i:s')); } if ($search->date_before)