diff --git a/lib/Database.php b/lib/Database.php index b1b35f9..b9717e6 100644 --- a/lib/Database.php +++ b/lib/Database.php @@ -418,7 +418,7 @@ class Database { $feed->favicon, $feed->data->siteUrl, $feed->data->date, - $feed->resource->getLastModified(), + \DateTime::createFromFormat("!D, d M Y H:i:s e", $feed->resource->getLastModified()), $feed->resource->getEtag(), $fetchUser, $fetchPassword diff --git a/lib/Feed.php b/lib/Feed.php index b6f4364..76f2d17 100644 --- a/lib/Feed.php +++ b/lib/Feed.php @@ -38,7 +38,7 @@ class Feed { // Grab the favicon for the feed; returns an empty string if it cannot find one. // Some feeds might use a different domain (eg: feedburner), so the site url is // used instead of the feed's url. - $this->favicon = (new Favicon)->find($siteUrl); + $this->favicon = (new Favicon)->find($feed->siteUrl); } catch (PicoFeedException $e) { throw new Feed\Exception($url, $e); }