Skip to content

Commit

Permalink
feat(CE): added UTC as timezone for cron schedule
Browse files Browse the repository at this point in the history
Co-authored-by: Tushar Selvakumar <[email protected]>
  • Loading branch information
github-actions[bot] and macintushar authored Oct 9, 2024
1 parent 0737717 commit 1aedb25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const CronScheduleType = ({ formik }: { formik: FormikContextType<any> }): JSX.E
currentDate: new Date(), // Start from current date
endDate: '2100-01-01', // End date for calculating runs (can be adjusted based on your needs)
iterator: true, // Return an iterator to get multiple occurrences
tz: 'UTC', // Timezone
};

const interval = parseExpression(cronExpression, options);
Expand Down
4 changes: 3 additions & 1 deletion ui/src/views/Activate/Syncs/ViewSync/ViewSync.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ const ViewSync = (): JSX.Element => {
</Box>
)}
</Box>
<SyncTabContent syncTab={syncTab} />
<Box pb={1}>
<SyncTabContent syncTab={syncTab} />
</Box>
</ContentContainer>
);
};
Expand Down

0 comments on commit 1aedb25

Please sign in to comment.