default editor to today
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
<script lang="ts">
|
||||
import { CalendarDate } from "@internationalized/date";
|
||||
import { CalendarDate, today, getLocalTimeZone } from "@internationalized/date";
|
||||
import { onMount } from "svelte";
|
||||
import { formatDate } from "$lib/date";
|
||||
import { createEntry, updateEntry, deleteEntry } from "$lib/upload.ts";
|
||||
|
||||
let {
|
||||
dateValue = $bindable<CalendarDate | undefined>(
|
||||
new CalendarDate(2026, 2, 1),
|
||||
),
|
||||
dateValue = $bindable<CalendarDate>( today(getLocalTimeZone()) ),
|
||||
} = $props();
|
||||
|
||||
let edit = $state<boolean>(false);
|
||||
@@ -55,3 +53,4 @@
|
||||
</button>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user