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:
parent
13470c3596
commit
7f7531171f
2 changed files with 31 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue