Timestamp dichotomous search error fix and implementation in query interface