Skip to content
Snippets Groups Projects
Commit bb351cc7 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #1572 from grintor/time_issue


date search fix

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 8400b7ad fcb34cfb
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