Verified Commit af505772 authored by Alexandre Morin's avatar Alexandre Morin
Browse files

fix () : display default date on dashboard

parent 1155890a
Pipeline #6962 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