support icon indicating copy to clipboard operation
support copied to clipboard

Event durationMS is not synced w/ duration value

Open arcady-zherdev opened this issue 3 years ago • 2 comments

Reported here: https://www.bryntum.com/forum/viewtopic.php?f=44&t=19325

Happens when an event has a non-working period between its start and end dates.

The reason is obvious considering the code:

    get durationMS() {
        const { endDateMS, startDateMS } = this;

        if (endDateMS && startDateMS) {
            return endDateMS - startDateMS;
        }
        else {
            return DH.asMilliseconds(this.duration || 0, this.durationUnit);
        }
    }

arcady-zherdev avatar Nov 03 '21 13:11 arcady-zherdev