fix date on neighour repor

This commit is contained in:
pablorevilla-meshtastic committed 2026-10-28 07:35:42 -07:00
1 parent acfd71bd2e
commit ef52e96d7c
1 file changed
+9 -1
+9 -1
View File
@@ -1189,7 +1189,15 @@ async function loadNeighborTimeSeries() {
grid: { bottom: 60 },
tooltip: {
trigger: "axis",
axisPointer: { type: "line" }
axisPointer: { type: "line" },
formatter: params => {
if (!params.length) return "";
const timestamp = Number(params[0].axisValue);
const heading = new Date(timestamp / 1000).toLocaleString();
return escapeHtml(heading) + "<br>" + params.map(point =>
`${point.marker}${escapeHtml(point.seriesName)}: ${escapeHtml(point.value ?? "N/A")}`
).join("<br>");
}
},
legend: {
type: "scroll",