mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
Replace toRelative with toHuman
Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
@@ -389,7 +389,7 @@ function formatInfo(data) {
|
||||
ttlInfo =
|
||||
divStart +
|
||||
"Time-to-live (TTL): " +
|
||||
luxon.Duration.fromObject({ seconds: data.ttl }).toRelative() +
|
||||
luxon.Duration.fromObject({ seconds: data.ttl }).toHuman({smallestUnit: "seconds", maxUnits: 2, stripZeroUnits: "all"}) +
|
||||
" (" +
|
||||
data.ttl +
|
||||
"s)</div>";
|
||||
|
||||
Reference in New Issue
Block a user