fix first leg of the day not including the first data point

This commit is contained in:
Matthias Wirth
2025-05-08 05:07:35 +00:00
parent 1d8a12826d
commit cf71f09a87

View File

@@ -6614,7 +6614,7 @@ function legShift(offset, plane) {
let legEnd = null;
let count = 0;
for (let i = 1; i < trace.length; i++) {
for (let i = 0; i < trace.length; i++) {
let timestamp = trace[i][0];
if (traceOpts.startStamp != null && timestamp < traceOpts.startStamp) {
continue;
@@ -6681,6 +6681,7 @@ function setTraceDate(options) {
traceDate.setUTCHours(0);
traceDate.setUTCMinutes(0);
traceDate.setUTCSeconds(0);
traceDate.setUTCMilliseconds(0);
let tomorrow = (new Date()).getTime() + 86400e3;
if (traceDate.getTime() > tomorrow) {