diff --git a/src/NewsPodcasts.php b/src/NewsPodcasts.php index 4fc04be..5090c44 100755 --- a/src/NewsPodcasts.php +++ b/src/NewsPodcasts.php @@ -176,7 +176,7 @@ protected static function generateFiles($arrFeed): void $objFeed->published = $arrFeed['tstamp']; $objDateTime = new \DateTime(); - $objFeed->lastBuildDate = $objDateTime->format(\DateTime::ATOM); + $objFeed->lastBuildDate = $objDateTime->format(\DateTime::RFC2822); //Add Feed Image $objFile = \FilesModel::findByUuid($arrFeed['image']); @@ -284,7 +284,7 @@ protected static function generateFiles($arrFeed): void ); $objDateTime = new \DateTime(); - $objItem->published = $objDateTime->setTimestamp((int) $objPodcasts->date)->format(\DateTime::ATOM); + $objItem->published = $objDateTime->setTimestamp((int) $objPodcasts->date)->format(\DateTime::RFC2822); $objAuthor = $objPodcasts->getRelated('author'); $objItem->author = $objAuthor->name; $objItem->teaser = self::cleanHtml($objPodcasts->teaser ?? $objPodcasts->description);