diff --git a/frontend/src/app/components/time-span/time-span.component.ts b/frontend/src/app/components/time-span/time-span.component.ts index 81f64bc35..7d3b987fe 100644 --- a/frontend/src/app/components/time-span/time-span.component.ts +++ b/frontend/src/app/components/time-span/time-span.component.ts @@ -52,7 +52,7 @@ export class TimeSpanComponent implements OnInit, OnChanges, OnDestroy { } calculate() { - const seconds = Math.floor((+new Date() - +new Date(this.time * 1000)) / 1000); + const seconds = Math.floor(this.time); if (seconds < 60) { return $localize`:@@date-base.just-now:Just now`; }