From 9f068614f50f336e8ac773facd87fb17023d87aa Mon Sep 17 00:00:00 2001
From: divlo
Date: Tue, 4 Aug 2020 11:42:21 +0200
Subject: [PATCH] =?UTF-8?q?=E2=8F=B0=20Fix=20UTC=20time?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
website/components/FunctionCard/FunctionCard.jsx | 2 +-
.../components/FunctionPage/CommentCard/CommentCard.jsx | 2 +-
website/components/FunctionPage/FunctionComponentTop.jsx | 2 +-
website/components/FunctionPage/FunctionForm.jsx | 2 +-
website/pages/admin/manageCategories.jsx | 4 ++--
website/pages/users/[name].jsx | 8 ++++----
6 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/website/components/FunctionCard/FunctionCard.jsx b/website/components/FunctionCard/FunctionCard.jsx
index 42565b9..bfaaae3 100644
--- a/website/components/FunctionCard/FunctionCard.jsx
+++ b/website/components/FunctionCard/FunctionCard.jsx
@@ -67,7 +67,7 @@ const FunctionCard = memo(
{props.categorie.name}
- {date.format(new Date(props.createdAt), 'DD/MM/YYYY', true)}
+ {date.format(new Date(props.createdAt), 'DD/MM/YYYY', false)}
diff --git a/website/components/FunctionPage/CommentCard/CommentCard.jsx b/website/components/FunctionPage/CommentCard/CommentCard.jsx
index fc18dc6..8d292d4 100644
--- a/website/components/FunctionPage/CommentCard/CommentCard.jsx
+++ b/website/components/FunctionPage/CommentCard/CommentCard.jsx
@@ -82,7 +82,7 @@ const CommentCard = forwardRef((props, ref) => {
{props.user.name}
-{' '}
- {date.format(new Date(props.createdAt), 'DD/MM/YYYY à HH:mm', true)}
+ {date.format(new Date(props.createdAt), 'DD/MM/YYYY à HH:mm', false)}
diff --git a/website/components/FunctionPage/FunctionComponentTop.jsx b/website/components/FunctionPage/FunctionComponentTop.jsx
index 0f8b55a..be05655 100644
--- a/website/components/FunctionPage/FunctionComponentTop.jsx
+++ b/website/components/FunctionPage/FunctionComponentTop.jsx
@@ -90,7 +90,7 @@ const FunctionComponentTop = props => {
- {date.format(new Date(props.createdAt), 'DD/MM/YYYY', true)}
+ {date.format(new Date(props.createdAt), 'DD/MM/YYYY', false)}
diff --git a/website/components/FunctionPage/FunctionForm.jsx b/website/components/FunctionPage/FunctionForm.jsx
index 3d20a72..a885376 100644
--- a/website/components/FunctionPage/FunctionForm.jsx
+++ b/website/components/FunctionPage/FunctionForm.jsx
@@ -138,7 +138,7 @@ const FunctionForm = props => {
const formattedDate = date.format(
dateObject,
'DD/MM/YYYY',
- true
+ false
)
handleChange({
target: {
diff --git a/website/pages/admin/manageCategories.jsx b/website/pages/admin/manageCategories.jsx
index 5d76e82..05a0533 100644
--- a/website/pages/admin/manageCategories.jsx
+++ b/website/pages/admin/manageCategories.jsx
@@ -229,14 +229,14 @@ const manageCategories = props => {
{date.format(
new Date(category.createdAt),
'DD/MM/YYYY à HH:mm',
- true
+ false
)}
{date.format(
new Date(category.updatedAt),
'DD/MM/YYYY à HH:mm',
- true
+ false
)}
|
{
event.target.files != null
? event.target.files[0]
: isTypeCheck
- ? event.target.checked
- : event.target.value
+ ? event.target.checked
+ : event.target.value
setInputState(inputStateNew)
}
@@ -245,7 +245,7 @@ const Profile = props => {
{date.format(
new Date(props.createdAt),
'DD/MM/YYYY à HH:mm',
- true
+ false
)}
@@ -316,7 +316,7 @@ const Profile = props => {
{date.format(
new Date(comment.createdAt),
'DD/MM/YYYY à HH:mm',
- true
+ false
)}
|