diff --git a/Classes/Domain/Dto/BlogPost.php b/Classes/Domain/Dto/BlogPost.php index 5575350..e122d58 100644 --- a/Classes/Domain/Dto/BlogPost.php +++ b/Classes/Domain/Dto/BlogPost.php @@ -69,7 +69,7 @@ public static function fromRss(\SimpleXMLElement $xmlElement): BlogPost $post->setAuthor((string)$xmlElement->author); $post->setLink((string)$xmlElement->link); if (isset($xmlElement->{'dc:date'})) { - $post->setPubDate(\DateTime::createFromFormat(DATE_RSS, $xmlElement->{'dc:date'})); + $post->setPubDate(\DateTime::createFromFormat(DATE_ATOM, $xmlElement->{'dc:date'})); } elseif (isset($xmlElement->pubDate)) { $post->setPubDate(\DateTime::createFromFormat(DATE_RSS, $xmlElement->pubDate)); }