upgrade ng 12 to 13: fix types errors

This commit is contained in:
bmartins 2023-03-15 15:38:39 +01:00
parent 5f80caa748
commit 9e82a9fbea

View File

@ -68,7 +68,7 @@ export class DateUtilitiesService {
parseInputDateToDateObject(inputDate: Date): Date {
const boom = inputDate.toISOString().substring(0, 10).split('-');
const converted = new Date(boom['0'], boom['1'] - 1, boom['2']);
const converted = new Date(+boom['0'], +boom['1'] - 1, +boom['2']);
console.log('converted', converted);
return converted;
}