fix bug in filter datetime type