Fix on date

This commit is contained in:
Sébastien ANDRE
2023-12-05 09:36:42 +01:00
parent 64738a581b
commit 6ab76db4f4
4 changed files with 10 additions and 4 deletions

View File

@@ -104,7 +104,7 @@ export class ListOfTunnelFlightsComponent implements OnInit {
this.isLoading = true;
// Get data to show in a table
let endDate = this.dateService.addMonths(new Date(), 2);
let endDate = new Date();
endDate.setHours(0, 0, 0, 0);
let beginDate = this.computeBeginDateByPeriod(this.selectedPeriod, endDate);