From d75ad835f4434cccc02f1fbed644c4340188b7ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87a=C4=9Fatay=20=C3=87ivici?= Date: Tue, 8 Aug 2017 17:55:01 +0300 Subject: [PATCH] Fixed error --- src/app/components/calendar/calendar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/calendar/calendar.ts b/src/app/components/calendar/calendar.ts index 69e5fe5b6d2..fbe7678468a 100644 --- a/src/app/components/calendar/calendar.ts +++ b/src/app/components/calendar/calendar.ts @@ -1006,7 +1006,7 @@ export class Calendar implements AfterViewInit,AfterViewChecked,OnInit,OnDestroy let tokens = text.split(' - '); value = []; for(let i = 0; i < tokens.length; i++) { - value[i] = this.parseDateTime(token.trim()); + value[i] = this.parseDateTime(tokens[i].trim()); } }