Explorar o código

timestamp diff for humans twitter style formatting

Carsten Porth %!s(int64=6) %!d(string=hai) anos
pai
achega
15e4b977c1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/src/pipes/diff-for-humans/diff-for-humans.ts

+ 1 - 1
app/src/pipes/diff-for-humans/diff-for-humans.ts

@@ -18,6 +18,6 @@ export class DiffForHumansPipe implements PipeTransform {
    * Takes a timestamp and makes the diff readable for humans.
    * Takes a timestamp and makes the diff readable for humans.
    */
    */
   transform(value: string, ...args) {
   transform(value: string, ...args) {
-    return timeAgo.format(new Date(value));
+    return timeAgo.format(new Date(value), 'twitter');
   }
   }
 }
 }