refactored timetracking to only use client-supplied times

This commit is contained in:
2025-08-28 22:52:04 +02:00
parent 3a43c5a7ba
commit dabd5eef0b
10 changed files with 176 additions and 124 deletions

View File

@@ -1,6 +1,8 @@
<script>
import { display } from '../time.svelte.js';
import { t } from '../translations.svelte.js';
import MarkdownEditor from './MarkdownEditor.svelte';
import TimeStampInput from './TimeStampInput.svelte';
let { record = null, onSet = time => {} } = $props();
@@ -20,11 +22,11 @@
</label>
<label>
{t('start')}
<input type="datetime-local" bind:value={record.start_time} />
<TimeStampInput bind:timestamp={record.start_time} />
</label>
<label>
{t('end')}
<input type="datetime-local" bind:value={record.end_time} />
<TimeStampInput bind:timestamp={record.end_time} />
</label>
<label>
{t('description')}