Skip to content

Commit

Permalink
fix existing borken cron schedules for component
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Collins authored and Chris Collins committed Aug 3, 2022
1 parent 23d49db commit 210df11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const ItemDescriptionText = styled(Typography.Paragraph)``;
const DAILY_MIDNIGHT_CRON_INTERVAL = '0 0 * * *';

export const CreateScheduleStep = ({ state, updateState, goTo, prev }: StepProps) => {
const interval = state.schedule?.interval || DAILY_MIDNIGHT_CRON_INTERVAL;
const interval = state.schedule?.interval?.replaceAll(', ', ' ') || DAILY_MIDNIGHT_CRON_INTERVAL;
const timezone = state.schedule?.timezone || Intl.DateTimeFormat().resolvedOptions().timeZone;

const setTimezone = (tz: string) => {
Expand Down

0 comments on commit 210df11

Please sign in to comment.