Skip to content

Commit

Permalink
Merge pull request #32 from makombe/dob
Browse files Browse the repository at this point in the history
Fix dob date picker increasing selected date by a month
  • Loading branch information
makombe authored Jul 17, 2024
2 parents 5da523f + 14afb68 commit 02a966c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const DobField: React.FC = () => {

const onDateChange = useCallback(
(birthdate: CalendarDate) => {
setFieldValue('birthdate', new Date(birthdate.year, birthdate.month, birthdate.day, 0, 0, 0, 0));
setFieldValue('birthdate', birthdate?.toDate(getLocalTimeZone()));
},
[setFieldValue],
);
Expand Down

0 comments on commit 02a966c

Please sign in to comment.