fix details view date is not date error