1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Added publication date

This commit is contained in:
Nicolas Lœuillet 2017-04-05 22:22:16 +02:00
parent 19122cf660
commit 5e9009ce86
37 changed files with 140 additions and 23 deletions

View file

@ -79,6 +79,10 @@ class ContentProxy
$entry->setContent($html);
$entry->setHttpStatus(isset($content['status']) ? $content['status'] : '');
if (isset($content['date']) && null !== $content['date']) {
$entry->setPublishedAt(new \DateTime($content['date']));
}
$entry->setLanguage(isset($content['language']) ? $content['language'] : '');
$entry->setMimetype(isset($content['content_type']) ? $content['content_type'] : '');
$entry->setReadingTime(Utils::getReadingTime($html));