Type Error: t is undefined in gantt.date.add

I am receiving error “Type Error: t is undefined” during gantt chart initialization

This error is specific to older version of firefox (I tried in V43 and V38 and could reproduce)

The error is occurring in gantt.date.add function

Hello,

Please, add full version of Gantt chart (dhtmlxgantt.zip/codebase/sources) and send received error again.
You can’t make it if you use evaluation version. In this case try to reproduce the error in the snippet: docs.dhtmlx.com/gantt/snippet/

The error is due to date parsing in older firefox vesion

developer.mozilla.org/en-US/doc … Date/parse

Converting the date string to ISO 8601 and then parsing solved this issue.

This bug is not related to dhtmlx but firefox ES implementation in general

Hi,
gantt codebase does not use Date.parse method nor new Date(string dateString) constructor exactly because of the cross-browser variances. Could you please provide a problematic config?

Probably you put a date string in a config that expects a Date object and type checking is missing from that code branch. Make sure that you use Date object for all configs that take date value since none of that configs takes date string.
I.e.

gantt.config.start_date = new Date(2015, 9, 12, 12, 0, 0);// OK gantt.config.start_date = "2015-10-12 12:00:00";// NOT OK