what could be reason date-fns formats and dispalys "just now" although date is correct and formatted time difference is correct in dev but not in prod.
const formatComments = (props: string): Comment[] => {
const comments = JSON.parse(props);
return comments.map((props: any) => ({
id: props.id,
userId: props.userId,
author: formatAuthor(props),
postId: props.postId,
createdAt: new Date(props.createdAt),
formattedTimeDifference: formatTimeDifference(new Date(props.createdAt)),
content: props.content,
}));
};