From 13ac3c19291d7717d7260d733f9b072f85dc500d Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Mon, 22 Jun 2020 18:01:26 +0200 Subject: [PATCH] build in some buffer for the midnight switch to historic traces --- html/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/script.js b/html/script.js index d39489e..c01eb9c 100644 --- a/html/script.js +++ b/html/script.js @@ -4463,8 +4463,8 @@ function getTrace(newPlane, hex, options) { if (showTrace) { let today = new Date(); //console.log(today.toUTCString() + ' ' + traceDate.toUTCString()); - // use non historic traces for showTrace until 20 min after midnight - if (today.getTime() > traceDate.getTime() && today.getTime() < traceDate.getTime() + (24 * 60 * 60 + 20 * 60) * 1000) { + // use non historic traces for showTrace until 30 min after midnight + if (today.getTime() > traceDate.getTime() && today.getTime() < traceDate.getTime() + (24 * 60 * 60 + 30 * 60) * 1000) { today.setUTCHours(0); today.setUTCMinutes(0);