Skip to content

Commit

Permalink
Check for the wrong start date
Browse files Browse the repository at this point in the history
Add wrongDateChecker to catch the wrong start date
which is causing the wrong duration for PipelineRuns
and TaskRuns
  • Loading branch information
jisoolee authored and tekton-robot committed Aug 29, 2023
1 parent 5819b5d commit b986b43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class DetailsHeader extends Component {
stepStatus.terminated || {});
}

if (!startTime || !endTime) {
if (!startTime || !endTime || new Date(startTime).getTime() == 0) {
return null;
}

Expand Down

0 comments on commit b986b43

Please sign in to comment.