Can I set start time in minutes? DHTMLX gantt doesnt seem to allow this


I’ve set my “duration_unit” as minutes". However when I try to set the start time of a task (or to drag a task to a start time), gantt only allows me to set start times that are at the nearest hour.

How can I set start times in minutes?

The other problem I have is that though I can set the duration in minutes in the lightbox, if I try to use the timeline to resize a task … it again forces me to have tasks that are an integer multiple of hours.


Hello David,
By default, Gantt rounds the dates to the nearest scale.
If you want to change it, you need to turn off the round_dnd_dates parameter:
Also, you need to change the time_step parameter:

Here is an example of how it works:

To set the start_date with minutes in the lightbox, you need to configure the time_format parameter in the lightbox section:
Here is the snippet:

You can also add the minute scale, then the lightbox will show the minute select without additional configuration:


Hi @ramil
Thanks for your response. Your suggestion, in combination with gantt.config.time_step, gave me the added control I needed.

Thank you for your prompt response. The support you give goes a long way towards helping us to evaluate the use of DHTMLX gantt, and other tools.