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} {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>

View File

@ -82,7 +82,7 @@ const CommentCard = forwardRef((props, ref) => {
<a>{props.user.name}</a> <a>{props.user.name}</a>
</Link> </Link>
&nbsp;-{' '} &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> </span>
</div> </div>
<div className='row'> <div className='row'>

View File

@ -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>

View File

@ -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: {

View File

@ -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

View File

@ -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