Page 1 of 1

Task editor remove time values when updating

Posted: Wed Jan 19, 2022 12:08 pm
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 59 times

Re: Task editor remove time values when updating

Posted: Thu Jan 20, 2022 10:47 am
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


Re: Task editor remove time values when updating

Posted: Thu Jan 20, 2022 12:47 pm
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.


Re: Task editor remove time values when updating

Posted: Fri Jan 21, 2022 2:34 am
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.