From 49a08cd5768fd860f4fb20c83d1a7d571b18e6f4 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Sat, 24 Jun 2023 17:32:53 +0200 Subject: [PATCH] Using time distance for content updated on stats page. --- assets/components/stats/stats.vue | 6 +++- package-lock.json | 52 ++++++++++++++++++++++--------- package.json | 1 + 3 files changed, 44 insertions(+), 15 deletions(-) diff --git a/assets/components/stats/stats.vue b/assets/components/stats/stats.vue index 4cde7ab3..8f4ba348 100755 --- a/assets/components/stats/stats.vue +++ b/assets/components/stats/stats.vue @@ -14,7 +14,10 @@
Content updated
-
{{ formatDate(lastScrape, 'YYYY-MM-DD HH:mm') }}
+
{{ formatDistance(lastScrape, new Date(), { includeSeconds: true }) }} ago
@@ -56,6 +59,7 @@