[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:
parent
f8913dfdbd
commit
cb691526c3
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue