From 8aff9be57023f3d64c04b2beb28c348379d01754 Mon Sep 17 00:00:00 2001 From: MarekWo Date: Mon, 23 Mar 2026 07:50:46 +0100 Subject: [PATCH] fix(map): show correct "Last seen" for cached contacts Used c.last_advert (numeric Unix timestamp) instead of c.last_seen (ISO 8601 string) which caused formatTimeAgo() to return "Invalid Date". Co-Authored-By: Claude Opus 4.6 --- app/static/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/static/js/app.js b/app/static/js/app.js index 18f9317..9173854 100644 --- a/app/static/js/app.js +++ b/app/static/js/app.js @@ -218,7 +218,7 @@ function updateMapMarkers() { cachedFiltered.forEach(c => { const typeNum = TYPE_LABEL_TO_NUM[c.type_label] || 1; const color = CONTACT_TYPE_COLORS[typeNum] || '#2196F3'; - const lastSeen = c.last_seen ? formatTimeAgo(c.last_seen) : ''; + const lastSeen = c.last_advert ? formatTimeAgo(c.last_advert) : ''; L.circleMarker([c.adv_lat, c.adv_lon], { radius: 8,