Project template : expected dates not copied when creating project

I have set up some tasks in Project Template, and I planned all the scheduling (start and end dates) in template tasks.


But,
When creating a project from Project Template, the project expected start and end dates don’t respect the Templates task dates. The newly created project has all tasks set to start and end today.

Template:


New Project:

but erpnext does not provide the task template doctype.

I meant Project Template Doctype of ERPNext.

but the project template does not provide the date.

@NCP
Yes, project template does not provide dates.
A project template only has list of tasks (of type template).

These template tasks have dates.

When creating a project from this template, properties of “task” (from template tasks) should have been copied to the newly created tasks inside Project.
Please check the code: