We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a4192c commit 260062fCopy full SHA for 260062f
src/features/profile/components/ProfileForm.tsx
@@ -125,7 +125,7 @@ const ProfileForm = ({ activeTab }: ProfileFormProps) => {
125
<Calendar
126
mode="single"
127
selected={field.value ? new Date(field.value) : undefined}
128
- onSelect={(date) => field.onChange(date ? format(date, "yyyy-MM-dd") : "")}
+ onSelect={(date) => field.onChange(date ? date.toISOString() : "")}
129
disabled={(date) => date > new Date() || date < new Date("1900-01-01")}
130
classNames={{
131
button_previous: "text-foreground hover:bg-accent p-2 rounded-lg hover:text-accent-foreground",
0 commit comments