From 36b66100f90fc760144f12e3e6ff38a51d903bdb Mon Sep 17 00:00:00 2001 From: vcoppe Date: Sun, 16 Nov 2025 12:13:55 +0100 Subject: [PATCH] fix time input handling --- website/src/lib/components/toolbar/tools/Time.svelte | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/src/lib/components/toolbar/tools/Time.svelte b/website/src/lib/components/toolbar/tools/Time.svelte index a8c478fb5..373d358dd 100644 --- a/website/src/lib/components/toolbar/tools/Time.svelte +++ b/website/src/lib/components/toolbar/tools/Time.svelte @@ -38,7 +38,7 @@ let endTime: string | undefined = $state(undefined); let movingTime: number | undefined = $state(undefined); let speed: number | undefined = $state(undefined); - let artificial = $state(false); + let artificial = $state(true); function toCalendarDate(date: Date): CalendarDate { return new CalendarDate(date.getFullYear(), date.getMonth() + 1, date.getDate()); @@ -346,7 +346,7 @@ let fileId = item.getFileId(); fileActionManager.applyToFile(fileId, (file) => { if (item instanceof ListFileItem) { - if (artificial || !$gpxStatistics.global.time.moving) { + if (artificial && !$gpxStatistics.global.time.moving) { file.createArtificialTimestamps( getDate(startDate!, startTime!), movingTime! @@ -359,7 +359,7 @@ ); } } else if (item instanceof ListTrackItem) { - if (artificial || !$gpxStatistics.global.time.moving) { + if (artificial && !$gpxStatistics.global.time.moving) { file.createArtificialTimestamps( getDate(startDate!, startTime!), movingTime!, @@ -374,7 +374,7 @@ ); } } else if (item instanceof ListTrackSegmentItem) { - if (artificial || !$gpxStatistics.global.time.moving) { + if (artificial && !$gpxStatistics.global.time.moving) { file.createArtificialTimestamps( getDate(startDate!, startTime!), movingTime!,