Fixed bug with using reporting with dates rather than datetimes