Replace toRelative with toHuman

Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
yubiuser
2025-11-09 13:08:09 +01:00
committed by Adam Warner
parent 2b5df96028
commit f34135b47f
5 changed files with 75 additions and 5 deletions

View File

@@ -389,7 +389,7 @@ function formatInfo(data) {
ttlInfo =
divStart +
"Time-to-live (TTL):&nbsp;&nbsp;" +
luxon.Duration.fromObject({ seconds: data.ttl }).toRelative() +
luxon.Duration.fromObject({ seconds: data.ttl }).toHuman({smallestUnit: "seconds", maxUnits: 2, stripZeroUnits: "all"}) +
" (" +
data.ttl +
"s)</div>";