Fix datetime_filter to handle string dates