From 1bd9af1b00d0a7d04f694682b8107e2db1b1ecaa Mon Sep 17 00:00:00 2001 From: Simona Domnisoru Date: Thu, 25 Apr 2024 17:03:00 +0200 Subject: [PATCH] fix: handle DD-MM-YYYY format --- .../RegistrationDataEntry/helpers/deriveAutoGenerateEvents.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core_modules/capture-core/components/Pages/New/RegistrationDataEntry/helpers/deriveAutoGenerateEvents.js b/src/core_modules/capture-core/components/Pages/New/RegistrationDataEntry/helpers/deriveAutoGenerateEvents.js index 61dc63c29c..2dd3320568 100644 --- a/src/core_modules/capture-core/components/Pages/New/RegistrationDataEntry/helpers/deriveAutoGenerateEvents.js +++ b/src/core_modules/capture-core/components/Pages/New/RegistrationDataEntry/helpers/deriveAutoGenerateEvents.js @@ -62,7 +62,7 @@ export const deriveAutoGenerateEvents = ({ : { status: 'SCHEDULE', // for schedule type of events we want to add the standard interval days to the date - scheduledAt: convertFn(moment(dateToUseInScheduleStatus) + scheduledAt: convertClientToServer(moment(dateToUseInScheduleStatus) .add(minDaysFromStart, 'days') .format('YYYY-MM-DD'), dataElementTypes.DATE,