update date when publishing post