always show date for historic track labels when set to local time

This commit is contained in:
Matthias Wirth
2025-01-02 19:08:37 +00:00
parent aff870d900
commit 103ec7f3eb

View File

@@ -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) {