Skip to content

Commit

Permalink
Merge pull request #180 from onattech/Pipeline_View_Display_Flow
Browse files Browse the repository at this point in the history
Changed seconds schedule to UTC timezone
  • Loading branch information
saul-data authored Mar 13, 2022
2 parents fcfc21b + c0b39bf commit 4de01e7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const ScheduleNode = (props) => {
</Typography>

<Typography fontSize={10} mt={1}>
{props.data.genericdata.timezone + ' ' + getTimeZoneOffSet(props.data.genericdata.timezone)}
{printTimezone(props.data.genericdata.timezone)}
</Typography>
</Grid>
</Tooltip>
Expand All @@ -99,3 +99,11 @@ const ScheduleNode = (props) => {
};

export default ScheduleNode;

// Utility function
function printTimezone(timezone) {
if (timezone === 'Etc/UTC') {
return 'UTC';
}
return timezone + ' ' + getTimeZoneOffSet(timezone);
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const ScheduleDrawer = ({ handleClose, setElements }) => {
genericdata: {
schedule: tabValue ? '*/' + seconds + ' * * * * *' : scheduleStatement,
scheduleType: tabValue ? 'cronseconds' : 'cron',
timezone: timezone,
timezone: tabValue ? 'Etc/UTC' : timezone,
},
};
}
Expand Down

0 comments on commit 4de01e7

Please sign in to comment.