Skip to content

Commit

Permalink
fix: handle DD-MM-YYYY format
Browse files Browse the repository at this point in the history
  • Loading branch information
simonadomnisoru committed Apr 25, 2024
1 parent fc10147 commit 1bd9af1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1bd9af1

Please sign in to comment.