Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Merge branch 'dev' into 48328-my-spent-time-shows-incorrect-non-working-days

Behrokh Satarnejad1e7e9a58bfcc
diff --cc frontend/src/app/features/calendar/op-calendar.service.ts
index 042e22b22ea,f40f53b671b..490f456139f
--- a/frontend/src/app/features/calendar/op-calendar.service.ts
+++ b/frontend/src/app/features/calendar/op-calendar.service.ts
@@@ -35,12 -35,11 +35,10 @@@ export class OpCalendarService extends
}
applyNonWorkingDay({ date }:{ date?:Date }, nonWorkingDays:IDay[]):string[] {
- if (date) {
- const formatted = moment(date).format('YYYY-MM-DD');
- if (this.weekdayService.isNonWorkingDay(date) || nonWorkingDays.find((el) => el.date === formatted)) {
- return ['fc-non-working-day'];
- }
+ const formatted = moment(date).format('YYYY-MM-DD');
+ if (date && (this.weekdayService.isNonWorkingDay(date) || nonWorkingDays.find((el) => el.date === formatted))) {
+ return ['fc-non-working-day'];
}
-
return [];
}
}