Skip to content
Snippets Groups Projects
Commit fcb34cfb authored by Chris Wheeler's avatar Chris Wheeler
Browse files

date search fix

This resolves #1570
parent 9c9bfae1
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment