[Trunk | Library]: dateFilter.component: Bug fix: Do NOT set month of from date to getMonth()-1.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@55979 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2019-06-03 16:06:23 +00:00
parent f8913dfdbd
commit cb691526c3
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ ngOnInit() {
this.updateDefaultRangeDates(this.dateValue.from,this.dateValue.to);
}
updateDefaultRangeDates(df:Date,dt:Date){
df.setMonth(df.getMonth()-1);
//df.setMonth(df.getMonth()-1);
this.fromDate = new FormControl(df);
this.toDate = new FormControl(dt);