summaryrefslogtreecommitdiffstats
path: root/fetcher
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-07-23 18:34:17 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-07-23 18:34:17 +0200
commit9b1fe46fe995bc103d3c5cfa9a552d050ff0ead8 (patch)
tree7b86abb65272df89f61e849a08edef5326207b8a /fetcher
parentb88d42074dcd0842d0db3ca8ed24b0b9ccb78a7a (diff)
Add timestamps for all entities in milisecond unix time format
Diffstat (limited to 'fetcher')
-rw-r--r--fetcher/feedfetcher.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/fetcher/feedfetcher.php b/fetcher/feedfetcher.php
index a85a17c71..beffe9051 100644
--- a/fetcher/feedfetcher.php
+++ b/fetcher/feedfetcher.php
@@ -29,12 +29,12 @@ use PicoFeed\Client\ForbiddenException;
use PicoFeed\Client\UnauthorizedException;
use OCP\IL10N;
-use OCP\AppFramework\Utility\ITimeFactory;
use OCA\News\Db\Item;
use OCA\News\Db\Feed;
use OCA\News\Utility\PicoFeedFaviconFactory;
use OCA\News\Utility\PicoFeedReaderFactory;
+use OCA\News\Utility\Time;
class FeedFetcher implements IFeedFetcher {
@@ -46,7 +46,7 @@ class FeedFetcher implements IFeedFetcher {
public function __construct(Reader $reader,
PicoFeedFaviconFactory $faviconFactory,
IL10N $l10n,
- ITimeFactory $time) {
+ Time $time) {
$this->faviconFactory = $faviconFactory;
$this->reader = $reader;
$this->time = $time;
@@ -241,7 +241,6 @@ class FeedFetcher implements IFeedFetcher {
$item->setGuid($parsedItem->getId());
$item->setGuidHash($item->getGuid());
$item->setPubDate($parsedItem->getDate()->getTimestamp());
- $item->setLastModified($this->time->getTime());
$item->setRtl($this->determineRtl($parsedItem, $parsedFeed));
// unescape content because angularjs helps against XSS