From bce50abd9268166dfd16609446e4c740d5435538 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Sat, 26 Jan 2019 12:17:57 +0530 Subject: [PATCH] schedule pd changes --- .../manage-pd/list-pd/schedule-pd/schedule-pd.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/schedule-pd/schedule-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/schedule-pd/schedule-pd.component.ts index 795d78bc0..d102fd7e1 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/schedule-pd/schedule-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/schedule-pd/schedule-pd.component.ts @@ -66,12 +66,11 @@ export class SchedulePdComponent implements OnInit, OnDestroy { ngOnInit() { this.validateTime = setInterval(() => { let currentTime:any = new Date(); - currentTime = currentTime.getFullYear()+'-'+currentTime.getMonth()+'-'+currentTime.getDay()+currentTime.getHours()+'-'+currentTime.getMinutes(); + currentTime = currentTime.getFullYear()+'-'+currentTime.getMonth()+'-'+currentTime.getDay()+'-'+currentTime.getHours()+'-'+currentTime.getMinutes(); let existTime:any = this.selectedMoment.getFullYear()+'-'+this.selectedMoment.getMonth()+'-'+this.selectedMoment.getDay() +'-'+this.selectedMoment.getHours()+'-'+this.selectedMoment.getMinutes(); if(existTime < currentTime) { this.selectedMoment = new Date(); this.min = new Date(); - } },1000); }