X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Futils.ts;h=7c8ae2e3e5e664c135925c38b801fe3953ad0afc;hb=26c6ee80d0fecfce595e8970f15717560b4f4ceb;hp=5ab41fe5a3fac07c11f74c2bf59f48b9e6e5cf16;hpb=7af75da41ba32451c3e9564714b05b506bdd881d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/utils.ts b/client/src/app/shared/utils.ts index 5ab41fe5a..7c8ae2e3e 100644 --- a/client/src/app/shared/utils.ts +++ b/client/src/app/shared/utils.ts @@ -1,12 +1,8 @@ -import { DatePipe } from '@angular/common'; +import { DatePipe } from '@angular/common' export class Utils { - static dateToHuman(date: String) { - return new DatePipe('en').transform(date, 'medium'); - } - - static getRowDeleteButton() { - return ''; + static dateToHuman (date: Date) { + return new DatePipe('en').transform(date, 'medium') } }