date search fix

This resolves #1570
Merge pull request #1572 from grintor/time_issue

date search fix

Reviewed-By: Peter Rotich <peter@osticket.com>