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

* Use local time when Date object has no time defined (defaults to 00:00)