Reject out-of-range observation epochs before display

This commit is contained in:
Sameh Khamis committed 2026-09-13 09:14:06 -07:00
1 parent 0007ace064
commit ebebf69564
3 files changed
+18 -2

No files matched your search

+2 -1
View File
@@ -141,7 +141,8 @@ export function normalizeAircraftTrack(
const latitude = finite(row[1]),
longitude = finite(row[2]);
const offset = finite(row[0]);
const observedAtMs = offset == null ? null : baseTimeMs + offset * 1000;
const observedAtMs =
offset == null ? null : epoch(baseTimeMs + offset * 1000);
if (
!coordinates(latitude, longitude) ||
observedAtMs == null ||