Skip to content

Commit

Permalink
Merge pull request #4130 from reportportal/feature/EPMRPP-97852-merge…
Browse files Browse the repository at this point in the history
…-develop-to-orgs

Feature/epmrpp 97852 merge develop to orgs
  • Loading branch information
BlazarQSO authored Dec 16, 2024
2 parents 23bcdb8 + f72407f commit 87defaf
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 87defaf

Please sign in to comment.