⏰ Fix UTC time
This commit is contained in:
parent
3877e974c5
commit
9f068614f5
@ -67,7 +67,7 @@ const FunctionCard = memo(
|
|||||||
{props.categorie.name}
|
{props.categorie.name}
|
||||||
</p>
|
</p>
|
||||||
<p className='FunctionCard__publication-date'>
|
<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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -82,7 +82,7 @@ const CommentCard = forwardRef((props, ref) => {
|
|||||||
<a>{props.user.name}</a>
|
<a>{props.user.name}</a>
|
||||||
</Link>
|
</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>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className='row'>
|
<div className='row'>
|
||||||
|
@ -90,7 +90,7 @@ const FunctionComponentTop = props => {
|
|||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
<p className='FunctionCard__publication-date'>
|
<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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -138,7 +138,7 @@ const FunctionForm = props => {
|
|||||||
const formattedDate = date.format(
|
const formattedDate = date.format(
|
||||||
dateObject,
|
dateObject,
|
||||||
'DD/MM/YYYY',
|
'DD/MM/YYYY',
|
||||||
true
|
false
|
||||||
)
|
)
|
||||||
handleChange({
|
handleChange({
|
||||||
target: {
|
target: {
|
||||||
|
@ -229,14 +229,14 @@ const manageCategories = props => {
|
|||||||
{date.format(
|
{date.format(
|
||||||
new Date(category.createdAt),
|
new Date(category.createdAt),
|
||||||
'DD/MM/YYYY à HH:mm',
|
'DD/MM/YYYY à HH:mm',
|
||||||
true
|
false
|
||||||
)}
|
)}
|
||||||
</td>
|
</td>
|
||||||
<td className='table-row'>
|
<td className='table-row'>
|
||||||
{date.format(
|
{date.format(
|
||||||
new Date(category.updatedAt),
|
new Date(category.updatedAt),
|
||||||
'DD/MM/YYYY à HH:mm',
|
'DD/MM/YYYY à HH:mm',
|
||||||
true
|
false
|
||||||
)}
|
)}
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
|
@ -245,7 +245,7 @@ const Profile = props => {
|
|||||||
{date.format(
|
{date.format(
|
||||||
new Date(props.createdAt),
|
new Date(props.createdAt),
|
||||||
'DD/MM/YYYY à HH:mm',
|
'DD/MM/YYYY à HH:mm',
|
||||||
true
|
false
|
||||||
)}
|
)}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@ -316,7 +316,7 @@ const Profile = props => {
|
|||||||
{date.format(
|
{date.format(
|
||||||
new Date(comment.createdAt),
|
new Date(comment.createdAt),
|
||||||
'DD/MM/YYYY à HH:mm',
|
'DD/MM/YYYY à HH:mm',
|
||||||
true
|
false
|
||||||
)}
|
)}
|
||||||
</p>
|
</p>
|
||||||
<ReactMarkdown
|
<ReactMarkdown
|
||||||
|
Reference in New Issue
Block a user