made sure that the date is updated when an object is updated