Fixed searching by date and time.