add time query condition for log