forked from tykayn/funky-framadate-front
upgrade ng 12 to 13: fix types errors
This commit is contained in:
parent
5f80caa748
commit
9e82a9fbea
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user