Fix bug when quitting NSFW video
[oweals/peertube.git] / client / src / app / shared / utils.ts
1 import { DatePipe } from '@angular/common'
2
3 export class Utils {
4
5   static dateToHuman (date: Date) {
6     return new DatePipe('en').transform(date, 'medium')
7   }
8 }