Skip to content

Commit 5f7bc44

Browse files
committed
Merge branch 'master' into prod
2 parents 2f607e0 + 0192164 commit 5f7bc44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/client/src/app/core/api-services/service.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class ServiceService {
6161
const services = await this.get(start, end);
6262

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

6767
if (day) return day.services.push(service);

packages/client/src/app/services/planning/planning.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class PlanningComponent implements OnInit {
3939
if (days.length > 0) {
4040
this.days = days;
4141
const today = this.days.filter((day: Day) => {
42-
return isSameDay(day.date, new Date());
42+
return isSameDay(new Date(day.date), new Date());
4343
});
4444
this.updateDayDetails(today[0] || this.days[0]);
4545
} else {

0 commit comments

Comments
 (0)