From 471ee39496e2140cf7f44b70aa63d7b3afb3e9bb Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Tue, 14 Apr 2020 01:38:41 +0200 Subject: Fix lint --- client/src/app/shared/angular/from-now.pipe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/app/shared/angular') diff --git a/client/src/app/shared/angular/from-now.pipe.ts b/client/src/app/shared/angular/from-now.pipe.ts index 07f114ab6..9851468ee 100644 --- a/client/src/app/shared/angular/from-now.pipe.ts +++ b/client/src/app/shared/angular/from-now.pipe.ts @@ -10,7 +10,7 @@ export class FromNowPipe implements PipeTransform { transform (arg: number | Date | string) { const argDate = new Date(arg) const seconds = Math.floor((Date.now() - argDate.getTime()) / 1000) - + let interval = Math.floor(seconds / 31536000) if (interval > 1) return this.i18n('{{interval}} years ago', { interval }) if (interval === 1) return this.i18n('{{interval}} year ago', { interval }) -- cgit v1.2.3