aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Import/WallabagImport.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/WallabagImport.php')
-rw-r--r--src/Wallabag/ImportBundle/Import/WallabagImport.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Import/WallabagImport.php b/src/Wallabag/ImportBundle/Import/WallabagImport.php
index 026567b0..8e50b135 100644
--- a/src/Wallabag/ImportBundle/Import/WallabagImport.php
+++ b/src/Wallabag/ImportBundle/Import/WallabagImport.php
@@ -139,6 +139,10 @@ abstract class WallabagImport extends AbstractImport
139 $entry->setArchived($data['is_archived']); 139 $entry->setArchived($data['is_archived']);
140 $entry->setStarred($data['is_starred']); 140 $entry->setStarred($data['is_starred']);
141 141
142 if (!empty($data['created_at'])) {
143 $entry->setCreatedAt(new \DateTime($data['created_at']));
144 }
145
142 $this->em->persist($entry); 146 $this->em->persist($entry);
143 ++$this->importedEntries; 147 ++$this->importedEntries;
144 148