Skip to content
Snippets Groups Projects
Commit 6bdf82bd authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FIX #15570 TIME 0:15 updated error message on documentDate

parent b23bec58
No related branches found
No related tags found
No related merge requests found
......@@ -431,7 +431,7 @@ class ResourceControlController
$documentDate = new \DateTime($body['documentDate']);
$tmr = new \DateTime('tomorrow');
if ($documentDate > $tmr) {
return ['errors' => "Body documentDate is not a valid date"];
return ['errors' => "Body documentDate cannot be a date in the future"];
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment