Skip to content

Commit

Permalink
Filter dates greater than date_after (#2115)
Browse files Browse the repository at this point in the history
* changing post filter date_after to be greater than, rather than greater than or equal to.
  • Loading branch information
crcommons authored Oct 6, 2017
1 parent eefb21b commit df2aa7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/classes/Ushahidi/Repository/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit df2aa7b

Please sign in to comment.