modify the bug in update end time