From c96db56f33ba59fe27da3a861400f541c8931203 Mon Sep 17 00:00:00 2001 From: Rafael Date: Wed, 5 Jan 2022 09:03:40 -0300 Subject: [PATCH] Fix negative time duration --- ui/util/time.js | 1 + 1 file changed, 1 insertion(+) 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 {