Skip to content

Commit

Permalink
Client: Fix problem due to dates in planning.components
Browse files Browse the repository at this point in the history
  • Loading branch information
a-jaillet committed May 17, 2021
1 parent 0ff530d commit 0192164
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class PlanningComponent implements OnInit {
if (days.length > 0) {
this.days = days;
const today = this.days.filter((day: Day) => {
return isSameDay(day.date, new Date());
return isSameDay(new Date(day.date), new Date());
});
this.updateDayDetails(today[0] || this.days[0]);
} else {
Expand Down

0 comments on commit 0192164

Please sign in to comment.