Commit 86396149a741aaddf9c74c6e7aef68f62a09b3c4

Authored by Thibaud Ajas
1 parent 42e579c2

rajout tirets

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/Template/Materiels/edit.ctp
... ... @@ -550,7 +550,7 @@ function twoToFourth(str) {
550 550 if (str.match(/^(\d{1,2})-(\d{1,2})-(\d{2})$/)) {
551 551 tabStr = str.split("-");
552 552 tabStr[2] = "20"+tabStr[2];
553   - str = tabStr[0]+tabStr[1]+tabStr[2];
  553 + str = tabStr[0]+"-"+tabStr[1]+"-"+tabStr[2];
554 554 }
555 555 return str;
556 556 }
... ...