diff --git a/features/users/user-profile/user-collections/collection-item.tsx b/features/users/user-profile/user-collections/collection-item.tsx index 6907b8c8..4791ac84 100644 --- a/features/users/user-profile/user-collections/collection-item.tsx +++ b/features/users/user-profile/user-collections/collection-item.tsx @@ -1,4 +1,4 @@ -import formatDistance from 'date-fns/formatDistance'; +import format from 'date-fns/format'; import { FC, Fragment, memo } from 'react'; import BxBxsUpvote from '~icons/bx/bxs-upvote'; import IconamoonCommentFill from '~icons/iconamoon/comment-fill'; @@ -35,11 +35,7 @@ const CollectionItem: FC = ({ data, className }) => {
- - {formatDistance(data.updated * 1000, Date.now(), { - addSuffix: true, - })} - + {format(new Date(data.updated * 1000), 'd.MM.Y')}
);