Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
maarchRM
Commits
af505772
Verified
Commit
af505772
authored
Feb 24, 2020
by
Alexandre Morin
Browse files
fix () : display default date on dashboard
parent
1155890a
Pipeline
#6962
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/presentation/maarchRM/Resources/view/dashboard/mainScreen/descriptionForm.html
View file @
af505772
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment