diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-04-05 22:22:16 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-04-05 22:22:52 +0200 |
commit | 5e9009ce86a366001616fad5b28cb59dc20ee4df (patch) | |
tree | fc4c88f3405d6f56a1fc27f9af43ab6be4117758 /src/Wallabag/CoreBundle/Helper | |
parent | 19122cf66037f86375072ffa60b6a43b54f02f99 (diff) | |
download | wallabag-5e9009ce86a366001616fad5b28cb59dc20ee4df.tar.gz wallabag-5e9009ce86a366001616fad5b28cb59dc20ee4df.tar.zst wallabag-5e9009ce86a366001616fad5b28cb59dc20ee4df.zip |
Added publication date
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper')
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/ContentProxy.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php index f222dd88..56358665 100644 --- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php +++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php | |||
@@ -79,6 +79,10 @@ class ContentProxy | |||
79 | $entry->setContent($html); | 79 | $entry->setContent($html); |
80 | $entry->setHttpStatus(isset($content['status']) ? $content['status'] : ''); | 80 | $entry->setHttpStatus(isset($content['status']) ? $content['status'] : ''); |
81 | 81 | ||
82 | if (isset($content['date']) && null !== $content['date']) { | ||
83 | $entry->setPublishedAt(new \DateTime($content['date'])); | ||
84 | } | ||
85 | |||
82 | $entry->setLanguage(isset($content['language']) ? $content['language'] : ''); | 86 | $entry->setLanguage(isset($content['language']) ? $content['language'] : ''); |
83 | $entry->setMimetype(isset($content['content_type']) ? $content['content_type'] : ''); | 87 | $entry->setMimetype(isset($content['content_type']) ? $content['content_type'] : ''); |
84 | $entry->setReadingTime(Utils::getReadingTime($html)); | 88 | $entry->setReadingTime(Utils::getReadingTime($html)); |