Timesheet times out after displaying the generating screen

Scenario:
When a user tries to access the timesheet, it times out after displaying the generating timesheet message and does not display the timesheet.

Cause:
When a new timesheet is generated, the rows are copied over from the previous saved timesheet. If there are a lot of rows in the previous timesheet, the new timesheet is not generated as it takes a lot of time to generate it and finally it times out.

Resolution:
Administrator or a user who can edit historical timesheets can edit the last timesheet and delete the unwanted rows. Then save the timesheet so that the new timesheet is based on the saved timesheet.

Note:
A new timesheet can be generated by using CSV import and having one sample row in the import for the user.