modify starttime and endtime part