From: Stas Vilchik Date: Thu, 25 Feb 2016 10:40:52 +0000 (+0100) Subject: imrpove display if background task processing crossed midnight X-Git-Tag: 5.5-M5~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e1fe5e049867d94a3818e5eb2b692a52c1b05c19;p=sonarqube.git imrpove display if background task processing crossed midnight --- diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/TaskDate.js b/server/sonar-web/src/main/js/apps/background-tasks/components/TaskDate.js index 2854b4e6ac4..d191442ff4a 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/components/TaskDate.js +++ b/server/sonar-web/src/main/js/apps/background-tasks/components/TaskDate.js @@ -23,12 +23,12 @@ import React from 'react'; export default function TaskDate ({ date, baseDate, format }) { const m = moment(date); const baseM = moment(baseDate); - const diff = (date && baseDate) ? m.diff(baseM, 'minutes') : 0; + const diff = (date && baseDate) ? m.diff(baseM, 'days') : 0; return ( {diff > 0 && ( - {`(+${diff})`} + {`(+${diff}d)`} )} {date ? moment(date).format(format) : ''}