From 103ec7f3ebfea1de0a8f4dd4a13b720e7c48e558 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Thu, 2 Jan 2025 19:08:37 +0000 Subject: [PATCH] always show date for historic track labels when set to local time --- html/planeObject.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/html/planeObject.js b/html/planeObject.js index e00f872..f98a865 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -1984,7 +1984,10 @@ PlaneObject.prototype.updateLines = function() { const date = new Date(seg.ts * 1000); let refDate = showTrace ? traceDate : new Date(); if (replay) { refDate = replay.ts }; - if (getDay(refDate) == getDay(date)) { + if (useLocal && historic) { + timestamp1 = lDateString(date); + timestamp1 += '\n'; + } else if (getDay(refDate) == getDay(date)) { timestamp1 = ""; } else { if (useLocal) {