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

use "current date" of the calendar instead of first day displayed by the calendar

Ivan Kuchinf943cab71679
diff --git a/frontend/src/app/features/calendar/op-work-packages-calendar.service.ts b/frontend/src/app/features/calendar/op-work-packages-calendar.service.ts
index 67c9b35811c..750153b6bc4 100644
--- a/frontend/src/app/features/calendar/op-work-packages-calendar.service.ts
+++ b/frontend/src/app/features/calendar/op-work-packages-calendar.service.ts
@@ -417,7 +417,7 @@ export class OpWorkPackagesCalendarService extends UntilDestroyedMixin {
void this.$state.go(
'.',
{
- cdate: this.timezoneService.formattedISODate(dates.view.currentStart),
+ cdate: this.timezoneService.formattedISODate(dates.view.calendar.getDate()),
// v6.beta3 fails to have type on the ViewAPI
cview: (dates.view as unknown as { type:string }).type,
},