« get me outta code hell

data: language: don't approximate same date in formatRelativeDate - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-11-29 22:29:26 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-11-29 22:29:26 -0400
commit168efd0f2685fa00259fffc9f26c7f6a30a61991 (patch)
tree139e19f675fd8a7a94df98339cb3b48a353a279c /src
parent26fb06c9238a44df75a079fb9495aaff65ebada6 (diff)
data: language: don't approximate same date in formatRelativeDate
Diffstat (limited to 'src')
-rw-r--r--src/data/things/language.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/things/language.js b/src/data/things/language.js
index fa529a8e..80a34575 100644
--- a/src/data/things/language.js
+++ b/src/data/things/language.js
@@ -369,7 +369,7 @@ export class Language extends Thing {
     const relative =
       this.formatString(
         'count.dateDuration',
-        (approximate
+        (approximate && (years || months || days)
           ? (comparison === -1
               ? 'approximateEarlier'
               : 'approximateLater')