diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-09-09 20:45:30 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-09-11 21:58:56 +0200 |
commit | 7f7531171f6e49110b5842f869e37c766a682473 (patch) | |
tree | 8709a30b2d4b1dca8515db22607b998cc943550c /src/Wallabag/ImportBundle | |
parent | 13470c3596d0b1490bbf18b39128a05bbb3c7f3e (diff) | |
download | wallabag-7f7531171f6e49110b5842f869e37c766a682473.tar.gz wallabag-7f7531171f6e49110b5842f869e37c766a682473.tar.zst wallabag-7f7531171f6e49110b5842f869e37c766a682473.zip |
Retrieve created date from Pocket
Diffstat (limited to 'src/Wallabag/ImportBundle')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/PocketImport.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php index d76a3a08..fe39d33f 100644 --- a/src/Wallabag/ImportBundle/Import/PocketImport.php +++ b/src/Wallabag/ImportBundle/Import/PocketImport.php | |||
@@ -254,6 +254,10 @@ class PocketImport extends AbstractImport | |||
254 | ); | 254 | ); |
255 | } | 255 | } |
256 | 256 | ||
257 | if (!empty($importedEntry['time_added'])) { | ||
258 | $entry->setCreatedAt((new \DateTime())->setTimestamp($importedEntry['time_added'])); | ||
259 | } | ||
260 | |||
257 | $this->em->persist($entry); | 261 | $this->em->persist($entry); |
258 | ++$this->importedEntries; | 262 | ++$this->importedEntries; |
259 | 263 | ||