updated the task when the date changed