Hello,
timeSpanContains should have a flag to indicate whether the borders should be included ( <= or >=) or excluded ( > < ).
If I create an event with exactly the same timeframe as my availability it comes up as invalid (using the timeSpanContains function to check availability) , which is not really the case as the full availability is consumed by the single task.
Example: availabilty 9:30 to 18:30, event: 9:30 to 18:30 and timeSpanContains returns a false, so you have to substract a minute on each side for having a true returning.
Regards,
Eric
Support Forum
Hmm, something is fishy in your code I believe.
Open https://bryntum.com/examples/gantt-lates ... endar.html
Run
Returns true for me.
Open https://bryntum.com/examples/gantt-lates ... endar.html
Run
Sch.util.Date.timeSpanContains(new Date(2010, 1, 1), new Date(2010, 1, 2), new Date(2010, 1, 1), new Date(2010, 1, 2))