Fix UTC time

This commit is contained in:
divlo 2020-08-04 11:42:21 +02:00
parent 3877e974c5
commit 9f068614f5
6 changed files with 10 additions and 10 deletions

View File

@ -67,7 +67,7 @@ const FunctionCard = memo(
{props.categorie.name}
</p>
<p className='FunctionCard__publication-date'>
{date.format(new Date(props.createdAt), 'DD/MM/YYYY', true)}
{date.format(new Date(props.createdAt), 'DD/MM/YYYY', false)}
</p>
</div>
</div>

View File

@ -82,7 +82,7 @@ const CommentCard = forwardRef((props, ref) => {
<a>{props.user.name}</a>
</Link>
&nbsp;-{' '}
{date.format(new Date(props.createdAt), 'DD/MM/YYYY à HH:mm', true)}
{date.format(new Date(props.createdAt), 'DD/MM/YYYY à HH:mm', false)}
</span>
</div>
<div className='row'>

View File

@ -90,7 +90,7 @@ const FunctionComponentTop = props => {
</a>
</Link>
<p className='FunctionCard__publication-date'>
{date.format(new Date(props.createdAt), 'DD/MM/YYYY', true)}
{date.format(new Date(props.createdAt), 'DD/MM/YYYY', false)}
</p>
</div>
</div>

View File

@ -138,7 +138,7 @@ const FunctionForm = props => {
const formattedDate = date.format(
dateObject,
'DD/MM/YYYY',
true
false
)
handleChange({
target: {

View File

@ -229,14 +229,14 @@ const manageCategories = props => {
{date.format(
new Date(category.createdAt),
'DD/MM/YYYY à HH:mm',
true
false
)}
</td>
<td className='table-row'>
{date.format(
new Date(category.updatedAt),
'DD/MM/YYYY à HH:mm',
true
false
)}
</td>
<td

View File

@ -245,7 +245,7 @@ const Profile = props => {
{date.format(
new Date(props.createdAt),
'DD/MM/YYYY à HH:mm',
true
false
)}
</p>
</div>
@ -316,7 +316,7 @@ const Profile = props => {
{date.format(
new Date(comment.createdAt),
'DD/MM/YYYY à HH:mm',
true
false
)}
</p>
<ReactMarkdown