From b986b43fd1b373012cd6db6c2b1babda8deed6f9 Mon Sep 17 00:00:00 2001 From: JISOO LEE Date: Mon, 28 Aug 2023 10:47:09 -0400 Subject: [PATCH] Check for the wrong start date Add wrongDateChecker to catch the wrong start date which is causing the wrong duration for PipelineRuns and TaskRuns --- .../components/src/components/DetailsHeader/DetailsHeader.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/components/DetailsHeader/DetailsHeader.jsx b/packages/components/src/components/DetailsHeader/DetailsHeader.jsx index c739fc655..3aa6e8765 100644 --- a/packages/components/src/components/DetailsHeader/DetailsHeader.jsx +++ b/packages/components/src/components/DetailsHeader/DetailsHeader.jsx @@ -28,7 +28,7 @@ class DetailsHeader extends Component { stepStatus.terminated || {}); } - if (!startTime || !endTime) { + if (!startTime || !endTime || new Date(startTime).getTime() == 0) { return null; }