diff --git a/ui/util/time.js b/ui/util/time.js index aa7f2ff1d..f2a9f52a8 100644 --- a/ui/util/time.js +++ b/ui/util/time.js @@ -57,6 +57,7 @@ export function getTimeAgoStr(date: any, showFutureDate?: boolean, genericSecond // negative duration === it's a future date from now if (duration < 0 && showFutureDate) { str = suffix === 'seconds' ? 'in a few seconds' : 'in %duration% ' + suffix; + duration = duration * -1; } else if (duration <= 0) { str = 'Just now'; } else {