From 009cf024442bcdc9bb4aead76d4f868880cf94cc Mon Sep 17 00:00:00 2001 From: Dlurak <84224239+Dlurak@users.noreply.github.com> Date: Wed, 24 Jan 2024 01:48:26 +0100 Subject: [PATCH] Implement a switchatble timeago component By default it still shows when the data was created relativly to now e.g. 12 hours ago But when the user clicks it it will show the exact time it was created/edited --- src/lib/dates/TimeAgo.svelte | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lib/dates/TimeAgo.svelte b/src/lib/dates/TimeAgo.svelte index dd944d3..0865938 100644 --- a/src/lib/dates/TimeAgo.svelte +++ b/src/lib/dates/TimeAgo.svelte @@ -1,9 +1,11 @@ - -

{timeDifference}

+