Skip to content
Snippets Groups Projects
Commit 787ad1cb authored by Jean-Laurent DUZANT's avatar Jean-Laurent DUZANT
Browse files

FIX #21389 TIME 0:15 set locale in sign function

parent 7a011e01
No related branches found
No related tags found
No related merge requests found
...@@ -388,6 +388,8 @@ class SignatureBookController ...@@ -388,6 +388,8 @@ class SignatureBookController
return $response->withStatus(403)->withJson(['errors' => 'Privilege forbidden']); return $response->withStatus(403)->withJson(['errors' => 'Privilege forbidden']);
} }
setlocale(LC_TIME, _DATE_LOCALE);
$body = $request->getParsedBody(); $body = $request->getParsedBody();
if (!Validator::intVal()->notEmpty()->validate($body['signatureId'])) { if (!Validator::intVal()->notEmpty()->validate($body['signatureId'])) {
return $response->withStatus(400)->withJson(['errors' => 'Body signatureId is empty or not an integer']); return $response->withStatus(400)->withJson(['errors' => 'Body signatureId is empty or not an integer']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment