diff --git a/frontend/src/concepts/pipelines/content/pipelinesDetails/pipelineRun/PipelineRunTabDetails.tsx b/frontend/src/concepts/pipelines/content/pipelinesDetails/pipelineRun/PipelineRunTabDetails.tsx index ac4bb06fe5..de9b01ef56 100644 --- a/frontend/src/concepts/pipelines/content/pipelinesDetails/pipelineRun/PipelineRunTabDetails.tsx +++ b/frontend/src/concepts/pipelines/content/pipelinesDetails/pipelineRun/PipelineRunTabDetails.tsx @@ -24,7 +24,7 @@ const PipelineRunTabDetails: React.FC = ({ workflowName, }) => { const { namespace, project } = usePipelinesAPI(); - + const epoch = new Date(0).toISOString().slice(0, -5) + 'Z'; if (!pipelineRunKF || !workflowName) { return ( @@ -62,10 +62,12 @@ const PipelineRunTabDetails: React.FC = ({ { key: 'Workflow name', value: workflowName }, { key: 'Created at', value: asTimestamp(new Date(pipelineRunKF.created_at)) }, { - key: 'Started at', - value: asTimestamp(new Date(pipelineRunKF.scheduled_at || pipelineRunKF.created_at)), + key: 'Finished at', + value: + pipelineRunKF.finished_at === epoch + ? 'N/A' + : asTimestamp(new Date(pipelineRunKF.finished_at)), }, - { key: 'Finished at', value: asTimestamp(new Date(pipelineRunKF.finished_at)) }, { key: 'Duration', value: relativeDuration(getRunDuration(pipelineRunKF)) }, ];