Skip to content

Commit

Permalink
EPMRPP-97287 || Duration is not shown for Nested Step on Log Level (#…
Browse files Browse the repository at this point in the history
…4122)

* EPMRPP-97287 || Duration is not shown for Nested Step on Log Level

* EPMRPP-97287 || fix duration on step level
  • Loading branch information
BlazarQSO authored Dec 5, 2024
1 parent d7ecfc0 commit 2ccee9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ export const DurationTooltip = ({ status, timing, type }) => {
);

const getStatusTitle = () => {
const durationTime = getDuration(timing.start, timing.end);
const durationTime = getDuration(
new Date(timing.start).getTime(),
new Date(timing.end).getTime(),
);
const endTime = dateFormat(timing.end, true);
const approxTime = getApproximateTime(timing);
const approxTimeIsOver = approxTime < 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export const ParentInfo = ({ parentItem }) => (
<div className={cx('icon-holder')}>
<Duration
status={parentItem.status}
startTime={parentItem.startTime}
endTime={parentItem.endTime}
startTime={new Date(parentItem.startTime).getTime()}
endTime={new Date(parentItem.endTime).getTime()}
approxTime={parentItem.approximateDuration}
/>
</div>
Expand Down

0 comments on commit 2ccee9b

Please sign in to comment.