Timeline and end_date doesn't coincide

Hi!

I’m having a issue where the end date that is showed ant gid area doesn’t coincide with the end date of the timelines.

As you can see in the screeshot, Task #1 shows at grid area that ends at 18-10, but timeline is over at 17-10.

here is the JSON with the Gantt Storage

How can I fix this?

Thanks!

Hello,
It happens because Gantt uses non-inclusive duration. If you open the lightbox, you will see that Task #1 ends on 18 October. By default, tasks start at 00:00. So, to be more precise the task starts 2018-10-15 00:00 and ends 2018-10-18 00:00:

There are many ways to work around that behavior, but the easiest way is to subtract 1 minute from the end date before updating the task. Here is an example of how it might be implemented:
http://snippet.dhtmlx.com/a73af08c3