about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorana <ana@ana.st>2021-08-08 19:50:28 +0200
committerana <ana@ana.st>2021-08-08 19:50:28 +0200
commit8f59bd6d3b039d98fb3a202253c5771e68afac76 (patch)
tree9055d10f5f818c015078b254a27d9b537bd96050
parent6d20a145920581eeffe08351311315ed1da56ba8 (diff)
downloadeureka-marks-8f59bd6d3b039d98fb3a202253c5771e68afac76.tar.gz
fix: make relative times not look dumb
-rw-r--r--src/App.svelte4
1 files 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";