⏰ Fix UTC time
This commit is contained in:
parent
3877e974c5
commit
9f068614f5
@ -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>
|
||||
|
@ -82,7 +82,7 @@ const CommentCard = forwardRef((props, ref) => {
|
||||
<a>{props.user.name}</a>
|
||||
</Link>
|
||||
-{' '}
|
||||
{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'>
|
||||
|
@ -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>
|
||||
|
@ -138,7 +138,7 @@ const FunctionForm = props => {
|
||||
const formattedDate = date.format(
|
||||
dateObject,
|
||||
'DD/MM/YYYY',
|
||||
true
|
||||
false
|
||||
)
|
||||
handleChange({
|
||||
target: {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user