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

avoid unclear date on dragging

ulfertsc5a8cc84c322
diff --git a/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.ts b/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.ts
index 2ba0b495bb3..583db901a63 100644
--- a/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.ts
+++ b/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.ts
@@ -352,7 +352,9 @@ export class TimeEntryCalendarComponent implements OnInit, OnDestroy, AfterViewI
private moveEvent(event:CalendarMoveEvent) {
let entry = event.event.extendedProps.entry;
- entry.spentOn = moment(event.event.start!).format('YYYY-MM-DD');
+ // Use end instead of start as when dragging, the event might be too long and would thus be start
+ // on the day before by fullcalendar.
+ entry.spentOn = moment(event.event.end!).format('YYYY-MM-DD');
this
.timeEntryDm