[Fix bug 845295] Fix custom date range query date variation

* Use local time when Date object has no time defined (defaults to 00:00)
Merge pull request #361 from johngian/845295

[Fix bug 845295] Fix custom date range query date variation