Skip to content

Commit

Permalink
Merge branch 'master' into prod
Browse files Browse the repository at this point in the history
  • Loading branch information
a-jaillet committed May 18, 2021
2 parents 2f607e0 + 0192164 commit 5f7bc44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class ServiceService {
const services = await this.get(start, end);

services.forEach((service) => {
const name = format(service.startAt, 'EEE', { locale: fr });
const name = format(new Date(service.startAt), 'EEE', { locale: fr });
const day = days.find(currentDay => currentDay.name === name);

if (day) return day.services.push(service);
Expand Down
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 5f7bc44

Please sign in to comment.