fix a bug on datetimepicker of modifyTask