From b84f216bb7dbeb061fdbe9c695f02052e8d72c77 Mon Sep 17 00:00:00 2001 From: Mahdi Tehrani Date: Mon, 11 Jul 2016 12:01:52 -0700 Subject: [PATCH 1/2] Date object type update I found that in my own examples, and in running a clone of this example, both needed these updated to work properly in the end. --- app/race.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/race.ts b/app/race.ts index 92c95ee..0b74131 100644 --- a/app/race.ts +++ b/app/race.ts @@ -1,7 +1,7 @@ export class Race { id: number; name: string; - date: date; + date: Date; about: string; entryFee: number; isRacing: boolean; From 10f6a5ea6a15d08a9cd09dd7945cfd66d527ec8f Mon Sep 17 00:00:00 2001 From: Mahdi Tehrani Date: Mon, 11 Jul 2016 12:02:32 -0700 Subject: [PATCH 2/2] Date object type update I found that in my own examples, and in running a clone of this example, both needed these updated to work properly in the end. --- app/races.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/races.component.ts b/app/races.component.ts index 1314c2f..10fad77 100644 --- a/app/races.component.ts +++ b/app/races.component.ts @@ -29,8 +29,8 @@ export class RacesComponent { return sum; } - castDate(date) { - return new Date(date); + castDate(date: Date) { + return new Date(date.toString()); } cashLeft() {