mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[APPS-2226] fix linting issue
This commit is contained in:
@@ -21,8 +21,8 @@ import { DateFnsUtils } from '../../../../../../core/src/lib/common/utils/date-f
|
||||
export class DateUtil {
|
||||
|
||||
static formatDate(dateFormat: string, date: Date = new Date(), days: number | string = 0): string {
|
||||
if(typeof days === 'string') {
|
||||
days = parseInt(days);
|
||||
if (typeof days === 'string') {
|
||||
days = parseInt(days, 10);
|
||||
}
|
||||
return DateFnsUtils.formatDate(addDays(date, days), dateFormat);
|
||||
}
|
||||
@@ -32,4 +32,3 @@ export class DateUtil {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user