|
@@ -114,7 +114,8 @@ export class AddNewReportComponent implements OnInit {
|
|
this.currentDate = this.authService.writeHijri(new Date(this.currentDate), 'en', 'system');
|
|
this.currentDate = this.authService.writeHijri(new Date(this.currentDate), 'en', 'system');
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
const nowHigriDate = this.currentDate.split(' ');
|
|
const nowHigriDate = this.currentDate.split(' ');
|
|
@@ -129,13 +130,13 @@ export class AddNewReportComponent implements OnInit {
|
|
nowHigriDate[0] = i + 1;
|
|
nowHigriDate[0] = i + 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
this.bindingDateSplitStart = {
|
|
this.bindingDateSplitStart = {
|
|
year:parseInt(nowHigriDate[2]),
|
|
year:parseInt(nowHigriDate[2]),
|
|
month: parseInt(nowHigriDate[0]),
|
|
month: parseInt(nowHigriDate[0]),
|
|
day: parseInt(nowHigriDate[1]),
|
|
day: parseInt(nowHigriDate[1]),
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ this.bindingDateSplitStart.day -= 1;
|
|
console.log('hhhhhhhhhhhhhhhhhhhh', this.bindingDateSplitStart);
|
|
console.log('hhhhhhhhhhhhhhhhhhhh', this.bindingDateSplitStart);
|
|
|
|
|
|
|
|
|