if statement around publishDate