Fix bug with date returing True for isinstance of datetime.