Make date selection work properly on task creation.