diff --git a/include/ajax.tickets.php b/include/ajax.tickets.php index 708bb6dbdc88b3f6adadba7205cc60efb5da8b4c..9d1c9af36a867536d66129bb5c1060554098510f 100644 --- a/include/ajax.tickets.php +++ b/include/ajax.tickets.php @@ -191,6 +191,7 @@ class TicketsAjaxAPI extends AjaxController { //dates $startTime =($req['startDate'] && (strlen($req['startDate'])>=8))?strtotime($req['startDate']):0; $endTime =($req['endDate'] && (strlen($req['endDate'])>=8))?strtotime($req['endDate']):0; + $endTime += (60 * 60 * 24) - 1; // $endTime should be the last second of the day, not the first like $startTime if( ($startTime && $startTime>time()) or ($startTime>$endTime && $endTime>0)) $startTime=$endTime=0;