save endTime as long type to model