forgot to add $id argument for setpublishDate function