diff --git a/ui/src/app/workflows/components/workflow-node-info/workflow-node-info.tsx b/ui/src/app/workflows/components/workflow-node-info/workflow-node-info.tsx index acfc9b0bf6a1..0653cbb3f0d8 100644 --- a/ui/src/app/workflows/components/workflow-node-info/workflow-node-info.tsx +++ b/ui/src/app/workflows/components/workflow-node-info/workflow-node-info.tsx @@ -79,6 +79,24 @@ const AttributeRows = (props: {attributes: {title: string; value: any}[]}) => ( ); +const DisplayWorkflowTime = (props: {date: Date | string | number}) => { + const {date} = props; + const getLocalDateTime = (utc: Date | string | number) => { + return new Date(utc.toString()).toLocaleString(); + }; + return ( +
+ {date === null || date === undefined ? ( + '-' + ) : ( + + {getLocalDateTime(date)} () + + )} +
+ ); +}; + const WorkflowNodeSummary = (props: Props) => { const {workflow, node} = props; @@ -107,8 +125,8 @@ const WorkflowNodeSummary = (props: Props) => { } ] : []), - {title: 'START TIME', value: }, - {title: 'END TIME', value: }, + {title: 'START TIME', value: }, + {title: 'END TIME', value: }, { title: 'DURATION', value: {now => }