Year in lightbox defaulting to 1900

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

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

Hello Shilpa,

The dev team fixed the bug with the lightbox. Now the year range doesn’t break when the range of the task dates is more than 10 years:
https://docs.dhtmlx.com/gantt/whatsnew.html#719

You can check how it works in the following snippet:
http://snippet.dhtmlx.com/5/9b365ae3a