Skip to content

Commit

Permalink
fix(frontend): fix timezone issues for Date only inputs (windmill-lab…
Browse files Browse the repository at this point in the history
  • Loading branch information
fatonramadani authored Aug 8, 2024
1 parent 8ea2906 commit 2334802
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/lib/components/DateInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
try {
let dateFromValue: Date | undefined = newDate ? new Date(newDate) : undefined
let dateFromValue: Date | undefined = newDate ? new Date(newDate + 'T00:00:00') : undefined
if (dateFromValue === undefined) {
return
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/lib/components/StringTypeNarrowing.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,7 @@
{#if format == 'date'}
<div class="mt-1" />

<div class="grid grid-cols-3 gap-2"
>x
<div class="grid grid-cols-3 gap-2">
<Label label="Date format passed to script" class="col-span-2">
<svelte:fragment slot="header">
<Tooltip light>
Expand Down

0 comments on commit 2334802

Please sign in to comment.