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

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