It seems it doesn’t work, also in your samples. It always uses the property gantt.config.date_scale value…

The problem seems to be in function _init_template used in function primaryScale. I’ve removed this call in primaryScale and now the date_scale template is used.

Confirmed, thank you for reporting. We’ll include the fix in the nearest update of the component

I am observing this issue in the most current version of dhtmlxGantt. When I create a template function for gantt.templates.date_scale, it is never executed. Please advise.

By the way, love this product. Very well done.


We’re working on it. Possibly this behaviour will be fixed in next version. For now, you could try to initialize your templates in onTemplatesReady handler. ( … event.html )
For example: