def update_publication_datetime
      @post = LatoBlog::Post.find_by(id: params[:id])
      return unless check_post_presence

      @post.post_parent.update(publication_datetime: params[:publication_datetime])
    end
def update_publication_datetime
      @post = LatoBlog::Post.find_by(id: params[:id])
      return unless check_post_presence

      @post.post_parent.update(publication_datetime: params[:publication_datetime])
    end
This function updates the publication datetime of a post (update the post parent).