Skip to content

Commit

Permalink
Merge pull request #1066 from MTES-MCT/issue/2278
Browse files Browse the repository at this point in the history
#minor (2278) Supprimer le contrôle de date future pour la date de l'évacuation
  • Loading branch information
superfeedboy authored Dec 19, 2024
2 parents eff74f5 + f5e54e3 commit 8fe9c3f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ export default [
return value;
})
.custom((value, { req }) => {
const today = new Date();
today.setHours(0, 0, 0, 0);

if (value > today) {
throw new Error('La date de la fermeture du site ne peut pas être future');
}

if (req.body.shantytown && req.body.shantytown.declaredAt) {
const declaredDate = new Date(req.body.shantytown.declaredAt * 1000);
declaredDate.setHours(0, 0, 0, 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
width="w-64"
name="closed_at"
:label="labels.closed_at"
:maxDate="new Date()"
:clearable="false"
v-bind="$attrs"
v-model="values.closed_at"
Expand Down

0 comments on commit 8fe9c3f

Please sign in to comment.