From 8f59bd6d3b039d98fb3a202253c5771e68afac76 Mon Sep 17 00:00:00 2001 From: ana Date: Sun, 8 Aug 2021 19:50:28 +0200 Subject: fix: make relative times not look dumb --- src/App.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index 171cf33..b3b910d 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -86,7 +86,7 @@ }); if (typeof i === "number") { - return `in ${day(getZoneForecast()[i + 1].date).fromNow()}`; + return `in ${day(getZoneForecast()[i + 1].date).fromNow(true)}`; } return "in the far future"; } @@ -99,7 +99,7 @@ }); if (typeof i === "number") { - return `for another ${day(getZoneForecast()[i + 1].date).fromNow(true)}`; + return `for ${day(getZoneForecast()[i + 1].date).fromNow(true)}`; } return "for a long time"; -- cgit 1.4.1-2-gfad0