X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Futils.ts;h=7c8ae2e3e5e664c135925c38b801fe3953ad0afc;hb=cfe1efd200f80239e19f94335364ac9ef3813c19;hp=1dd6f96f0b77c24abd6ea50628bb379ecea4206f;hpb=28798b5d949826551740fc893d06e6424b77aa6a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/utils.ts b/client/src/app/shared/utils.ts index 1dd6f96f0..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) { + static dateToHuman (date: Date) { return new DatePipe('en').transform(date, 'medium') } - - static getRowDeleteButton() { - return ''; - } }