From 8ac714a5b5cd9eb43fce6444f52d74fc5d9d3cce Mon Sep 17 00:00:00 2001 From: Tilen Komel Date: Thu, 30 Jan 2025 18:03:28 +0100 Subject: [PATCH] Update TimeAgo --- src/components/generic/TimeAgo.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/generic/TimeAgo.tsx b/src/components/generic/TimeAgo.tsx index 723ebf19..7507a7a3 100755 --- a/src/components/generic/TimeAgo.tsx +++ b/src/components/generic/TimeAgo.tsx @@ -12,7 +12,7 @@ const getTimeAgo = (timestamp: number): string => { if (secondsPast < 60) return `${secondsPast} seconds ago`; if (secondsPast < 3600) return `${Math.floor(secondsPast / 60)} minutes ago`; if (secondsPast < 86400) return `${Math.floor(secondsPast / 3600)} hours ago`; - return `${Math.floor(secondsPast / 86400)} days ago`; + return `${Math.floor(secondsPast / 86400)} days ago ${secondsPast}`; }; export const TimeAgo = ({ timestamp }: TimeAgoProps): JSX.Element => {