Task Bar shows one day less

I’m loading Task dates as “start date + end_date” , however in chart it always shows one day less. How to fix this issue? Please help.


In your case end_date is 30/06/2016. So it means that your event finishes June 30th at 00:00 and covers June 29th and doesn’t cover June 30th. If you want to fully cover June 30th you should set end date “2016-07-1” or “2016-07-1 00:00”. Maybe you could at least use “2016-06-30 23:59:59”, but correct case is to use “2016-07-1” or “2016-07-1 00:00”.
If it necessary for you, you could correct event dates in onTaskLoading handler.
docs.dhtmlx.com/gantt/api__gantt … event.html

Dear Polina,

Thanks for your reply.
In our case when we display end_date as 30/06/2016. which means that task finishes June 30th (including full day). I cannot change the dates here because application users will be confused.
Is there any way to extend the task bar by one day without changing the dates ?


Unfortunately, it’s not possible.
As I wrote in previous reply, you could use “2016-06-30 23:59:59”, if you need to include full day of June 30th.