Commit ebad080f authored by Elodie Somé-Blad's avatar Elodie Somé-Blad
Browse files

Merge branch 'develop' of labs.maarch.org:maarch/maarchRM into develop

parents 7b30ccb0 af505772
Pipeline #6963 canceled with stages
......@@ -319,8 +319,8 @@ input:invalid {
if (descriptionField.default === "now") {
let date = new Date();
var day = date.getDate();
var month = date.getMonth() + 1;
var day = ('0' + (date.getDate())).slice(-2);
var month = ('0' + (date.getMonth()+1)).slice(-2);
var year = date.getFullYear();
let now = day + '-' + month + '-' + year;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment