If a template has the same dates for the project and all of its tasks, the expected functionality when adding a task from a template is that the start and end dates on the new project should be equal to the project start and finish dates.
Why then is the finish date of the new project tasks updated to one day less than the expected finish date?
Template Project Dates: 1/1/2019 - 12/31/2019
Template Task Dates: 1/1/2019 - 12/31/2019
New Project Dates: 1/1/2020 - 12/31/2020
Expected Task Dates (copied from template): 1/1/2020 - 12/31/2020
Actual Task Dates (copied from template): 1/1/2019 - 12/30/2020 --- Note this Finish Date is a day earlier than expected.
Release : All Releases
Component : CA PPM Project Management
This is due to the extra day in the year 2020 since it's a leap year.
When a task is copied from a template, the dates on the new project tasks are determined by the difference between the Start and Finish dates (so the duration).
Looking at the example above, the template tasks have the dates: 1/1/2019 - 12/31/2019. The duration is 365 days.
When a project is created or copied from this template, the Finish date will be calculated as 365 days after the selected start date.
In this example again, a Start Date of 1/1/2020 was selected so the Finish date will be calculated to be 365 days later. Since the year 2020 is a leap year, 365 days later will be 12/30/2020 as the extra day in February has to be taken into account.
For the tasks on the new project to be created with the expected dates of the 1/1/2020 to 12/31/2020, the dates on the template will need to be modified to have a duration of 366 days. This can be accomplished by either changing the dates on the template to 1/1/2019 - 1/1/2020 or 1/1/2020 - 12/31/2020.