1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Retrieve created date from Pocket

This commit is contained in:
Jeremy Benoist 2016-09-09 20:45:30 +02:00
parent 13470c3596
commit 7f7531171f
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 31 additions and 0 deletions

View file

@ -254,6 +254,10 @@ class PocketImport extends AbstractImport
);
}
if (!empty($importedEntry['time_added'])) {
$entry->setCreatedAt((new \DateTime())->setTimestamp($importedEntry['time_added']));
}
$this->em->persist($entry);
++$this->importedEntries;