Skip to content

Commit

Permalink
feat: localized date input (#62)
Browse files Browse the repository at this point in the history
* feat: localized date input based on browser locale
  • Loading branch information
johanohly authored Oct 9, 2024
1 parent 2d222ce commit 3d73903
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions src/lib/components/form-fields/DateTimeField.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
fixedWeeks={true}
weekStartsOn={1}
minValue={parseDate('1970-01-01')}
locale={navigator.language}
>
<div class="flex w-full max-w-[232px] flex-col gap-1.5">
<DatePicker.Input
Expand Down

0 comments on commit 3d73903

Please sign in to comment.