Update end time