Issue with exporting Gantt to pdf start and end are not working when raw is set to true

We are having multiple layers, we want to export gantt to pdf format.
We are sending custom styles in header. If I don’t set raw to true, pdf exported is getting started with mentioned start and end dates, but when I set it to true, the time boundaries are not getting applied.

PFA screenshots.

Hello,
We know about that issue and have it in our tracker. The bug will be fixed in future.
Now, as a workaround you can change global start_date and end_date parameters and export the data. Then change the date range back:

gantt.config.start_date = new Date(2018, 2, 28);
gantt.config.end_date = new Date(2018, 3, 6);
gantt.exportToPDF({raw: true});
gantt.config.start_date = null;
gantt.config.end_date = null;
gantt.render()

Here is an example:
http://snippet.dhtmlx.com/6abce46f3

Hi ramil
Work around is working perfectly, thanks for the quick response.

for those who are facing same issue, instead of setting global start and end time to null, assign back to original values, so that your gantt remains as it is