set the date published on any save of the model