From 9e82a9fbeab1ed87a19794b1c5ba7b07024e9b9c Mon Sep 17 00:00:00 2001 From: bmartins Date: Wed, 15 Mar 2023 15:38:39 +0100 Subject: [PATCH] upgrade ng 12 to 13: fix types errors --- src/app/core/services/date.utilities.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/core/services/date.utilities.service.ts b/src/app/core/services/date.utilities.service.ts index 9f8c9ea5..e2236b09 100644 --- a/src/app/core/services/date.utilities.service.ts +++ b/src/app/core/services/date.utilities.service.ts @@ -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; }