Premium support for our pure JavaScript UI components


Post by takafumi ohtake »

If tasks have time values for start/end date, the task editor removes time values when updating tasks regardless of modification of the dates.
And even worse, tasks have mismatching of dates and duration when it happens.
I think the task editor should keep time if dates are not changed.

It can be reproduced at https://bryntum.com/examples/gantt/advanced/.

duration_mismatch.mp4
(1.05 MiB) Downloaded 23 times

Post by alex.l »

Thank you for the report, I see the problem. Here is a link to track the status: https://github.com/bryntum/support/issues/4048

All the best,
Alex


Post by arcady »

We haven't started on the ticket yet but as a quick workaround you can try configuring task editor this way:

const gantt = new Gantt({
    ...
    features : {
        taskEdit : {
            items : {
                generalTab : {
                    items : {
                        startDate : {
                            format   : 'YYYY-MM-DD HH:mm:ss',
                            keepTime : 'entered'
                        },
                        endDate : {
                            format   : 'YYYY-MM-DD HH:mm:ss',
                            keepTime : 'entered'
                        }
                    }
                },
                advancedTab : {
                    items : {
                        constraintDateField : {
                            format   : 'YYYY-MM-DD HH:mm:ss',
                            keepTime : 'entered'
                        }
                    }
                }
            }
        },

The above code sets a time including format for start, end and constraint date fields and tells them to preserve the provided time portion of the dates.


Post by takafumi ohtake »

Hello Arcady,

Brilliant! Thanks a lot!
I tried it. And it worked as expected.
I will introduce it to our product until Bryntum Gantt fixes this bug.


Post Reply