From cdfc4c9610ca71e8229ad54b324584ef346ccf55 Mon Sep 17 00:00:00 2001 From: l5y <220195275+l5yth@users.noreply.github.com> Date: Sat, 13 Sep 2025 16:49:40 +0200 Subject: [PATCH] Display position time in relative 'time ago' format (#19) --- web/public/nodes.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/public/nodes.html b/web/public/nodes.html index fb7057b..7b3b7f2 100644 --- a/web/public/nodes.html +++ b/web/public/nodes.html @@ -173,7 +173,7 @@ ${timeAgo(n.last_heard)} ${fmt(n.latitude)} ${fmt(n.longitude)} - ${n.pos_time_iso || ""}`; + ${n.pos_time_iso ? `${n.pos_time_iso} (${timeAgo(n.position_time)})` : ""}`; tb.appendChild(tr); } } @@ -202,7 +202,7 @@ (n.snr != null ? `SNR: ${n.snr}` : null), (n.battery_level != null ? `Battery: ${n.battery_level}` : null), (n.last_heard ? `Last seen: ${timeAgo(n.last_heard)}` : null), - (n.pos_time_iso ? `Pos time: ${n.pos_time_iso}` : null) + (n.pos_time_iso ? `Pos time: ${n.pos_time_iso} (${timeAgo(n.position_time)})` : null) ].filter(Boolean); marker.bindPopup(lines.join('
')); marker.addTo(markersLayer);