Adjust time of endDate parameter.