diff --git a/packages/esm-patient-registration-app/src/patient-registration/field/dob/dob.component.tsx b/packages/esm-patient-registration-app/src/patient-registration/field/dob/dob.component.tsx index 2b721faa3..026a3a87e 100644 --- a/packages/esm-patient-registration-app/src/patient-registration/field/dob/dob.component.tsx +++ b/packages/esm-patient-registration-app/src/patient-registration/field/dob/dob.component.tsx @@ -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], );