Skip to content

Commit 260062f

Browse files
committed
fix(dob): update format request dob to iso string
1 parent 7a4192c commit 260062f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/profile/components/ProfileForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const ProfileForm = ({ activeTab }: ProfileFormProps) => {
125125
<Calendar
126126
mode="single"
127127
selected={field.value ? new Date(field.value) : undefined}
128-
onSelect={(date) => field.onChange(date ? format(date, "yyyy-MM-dd") : "")}
128+
onSelect={(date) => field.onChange(date ? date.toISOString() : "")}
129129
disabled={(date) => date > new Date() || date < new Date("1900-01-01")}
130130
classNames={{
131131
button_previous: "text-foreground hover:bg-accent p-2 rounded-lg hover:text-accent-foreground",

0 commit comments

Comments
 (0)