Only update the modified date on an object if it is modified.