fix searching by datetime