set the end time to be the starttime on change.