X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fmisc%2Ffrom-now.pipe.ts;h=fac02af0bd6b59e3aa23c1e10d5ccc766f2b428b;hb=2efd32f697549c59337db5177a93749af8e605d8;hp=25e5d6a85791ad4aed7b6b549d1e6ba938fb3619;hpb=9bf9d2a5c223bf006496ae7adf0c0bd7a7975108;p=oweals%2Fpeertube.git diff --git a/client/src/app/shared/misc/from-now.pipe.ts b/client/src/app/shared/misc/from-now.pipe.ts index 25e5d6a85..fac02af0b 100644 --- a/client/src/app/shared/misc/from-now.pipe.ts +++ b/client/src/app/shared/misc/from-now.pipe.ts @@ -1,8 +1,7 @@ import { Pipe, PipeTransform } from '@angular/core' -// Thanks: https://github.com/danrevah/ngx-pipes/blob/master/src/pipes/math/bytes.ts - -@Pipe({name: 'fromNow'}) +// Thanks: https://stackoverflow.com/questions/3177836/how-to-format-time-since-xxx-e-g-4-minutes-ago-similar-to-stack-exchange-site +@Pipe({ name: 'myFromNow' }) export class FromNowPipe implements PipeTransform { transform (value: number) {