refactored timetracking to only use client-supplied times
This commit is contained in:
@@ -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')}
|
||||
|
||||
Reference in New Issue
Block a user