From fcb34cfbb652d882250f625be8909320226ca937 Mon Sep 17 00:00:00 2001 From: Chris Wheeler <grintor@gmail.com> Date: Wed, 17 Dec 2014 20:46:14 -0500 Subject: [PATCH] date search fix This resolves #1570 --- include/ajax.tickets.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/ajax.tickets.php b/include/ajax.tickets.php index 708bb6dbd..9d1c9af36 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; -- GitLab