render full year in videos released date

This commit is contained in:
nklhrstv 2022-07-29 17:59:45 +03:00
parent ab0a8d6938
commit 852a6fc80f

View file

@ -88,7 +88,7 @@ const Video = ({ className, id, title, thumbnail, episode, released, upcoming, w
{
released instanceof Date && !isNaN(released.getTime()) ?
<div className={styles['released-container']}>
{released.toLocaleString(undefined, { year: '2-digit', month: 'short', day: 'numeric' })}
{released.toLocaleString(undefined, { year: 'numeric', month: 'short', day: 'numeric' })}
</div>
:
scheduled ?