Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
APPOIO
Frontend
Commits
1a14a1de
Commit
1a14a1de
authored
4 years ago
by
bianca-camargo-machado1
Browse files
Options
Download
Email Patches
Plain Diff
fix date
parent
bb2af569
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/TutorialComponent.js
+1
-4
src/components/TutorialComponent.js
with
1 addition
and
4 deletions
+1
-4
src/components/TutorialComponent.js
View file @
1a14a1de
...
...
@@ -52,10 +52,7 @@ export default function TutorialComponent({ data }) {
React
.
useEffect
(()
=>
{
if
(
date
)
{
let
dateParam
=
date
.
split
(
/
[\s
-:
]
/
);
dateParam
[
1
]
=
(
parseInt
(
dateParam
[
1
],
10
)
-
1
).
toString
();
const
formattedDate
=
moment
(
new
Date
(...
dateParam
)).
format
(
"
DD/MM/YYYY
"
);
const
formattedDate
=
moment
(
new
Date
(
date
)).
format
(
"
DD/MM/YYYY
"
);
setAppoioDate
(
formattedDate
);
}
},
[
date
]);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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
Menu
Projects
Groups
Snippets
Help