Skip to content

Commit

Permalink
Fix pgsql : operator does not exist: timestamp without time zone ~~ u…
Browse files Browse the repository at this point in the history
…nknown
  • Loading branch information
atm-ph committed Oct 29, 2018
1 parent 04f80f0 commit c83e671
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/adherents/subscription/list.php
Expand Up @@ -126,7 +126,8 @@
$sql.= " AND d.entity IN (".getEntity('adherent').")";
if (isset($date_select) && $date_select != '')
{
$sql.= " AND c.dateadh LIKE '".$date_select."%'";
$sql.= " AND c.dateadh >= '".$date_select."-01-01 00:00:00'";
$sql.= " AND c.dateadh < '".($date_select+1)."-01-01 00:00:00'";
}
if ($search_ref)
{
Expand Down

0 comments on commit c83e671

Please sign in to comment.