Year in lightbox defaulting to 1900


#1

Hi,

The year values for the Start and End date fields in the lightbox are defaulting to 1900. How can we set this to the value from the retrieved task?

Thanks


#2

Hello Shilpa,
By default, the lightbox has its own year range if it is not specified.
Usually, it follows the tasks as long as they fit the default 10-year range period.
But when the year range for the task dates is more than 10 years, that issue occurs:
http://snippet.dhtmlx.com/5/9b365ae3a

I added it as a bug to our internal bug tracker. The dev team will fix it in the future, but I cannot give you any ETA.

As a workaround, you need to manually specify the year range in the lightbox section configuration:
https://docs.dhtmlx.com/gantt/desktop__duration.html
https://docs.dhtmlx.com/gantt/desktop__time.html

Here is an example:
http://snippet.dhtmlx.com/5/30ba9a098