mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[APPS-2108] migrate cardview and task filters to date-fns (#9006)
* move based edit task filter to date-fns * migrate cardview component to date-fns * bug fixes for card view types, utc and multivalue * fix copy to clipboard typing issue * mark moment adapter for deprecation * exclude e2e * try migrate metadata smoke
This commit is contained in:
@@ -55,10 +55,10 @@ export class LocalizedDatePipe implements PipeTransform, OnDestroy {
|
||||
}
|
||||
}
|
||||
|
||||
transform(value: any, format?: string, locale?: string): any {
|
||||
transform(value: Date | string | number, format?: string, locale?: string): string {
|
||||
const actualFormat = format || this.defaultFormat;
|
||||
const actualLocale = locale || this.defaultLocale;
|
||||
const datePipe: DatePipe = new DatePipe(actualLocale);
|
||||
const datePipe = new DatePipe(actualLocale);
|
||||
return datePipe.transform(value, actualFormat);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user