Skip to content

Commit

Permalink
Merge pull request #9910 from atm-ph/fix_8.0_pgsql
Browse files Browse the repository at this point in the history
Fix pgsql : operator does not exist: timestamp without time zone ~~ u…
  • Loading branch information
eldy committed Oct 30, 2018
2 parents 7f1776c + a8e6c38 commit 06bffee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions htdocs/adherents/subscription/list.php
Expand Up @@ -40,7 +40,7 @@
$search_amount=GETPOST('search_amount','alpha');
$optioncss = GETPOST('optioncss','alpha');

$date_select=isset($_GET["date_select"])?$_GET["date_select"]:$_POST["date_select"];
$date_select=GETPOST("date_select",'alpha');

$limit = GETPOST('limit','int')?GETPOST('limit','int'):$conf->liste_limit;
$sortfield = GETPOST("sortfield",'alpha');
Expand Down 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 06bffee

Please sign in to comment.