Skip to content

Fix #162 (Gantt chart update -> reads wrong fields) #212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/gantt-chart-layout/src/layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ onMounted(() => {
YEAR: ['5y', '5y'],
},
async on_date_change(task, start: Date, end: Date) {
const startDate = new Date(task.start);
const endDate = new Date(task.end);
const startDate = new Date(start);
const endDate = new Date(end);

startDate.setUTCFullYear(start.getUTCFullYear());
endDate.setUTCFullYear(end.getUTCFullYear());
Expand Down