fix datetimepicker in 'edit' view