changed endDate implementation on ios to spec more updates