Adds date to publish message.