X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FHelper%2FEntriesExport.php;h=0c627dcdb6344fa687364d138b2d36bf217ddc89;hb=77557d289bafc088baf806e4744f110dfd959300;hp=e91007e1ba7eeccb6781e601a770ebfcb182bd5d;hpb=45d94a98f78320fd993c4d5bce925c66d8e38346;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Helper/EntriesExport.php b/src/Wallabag/CoreBundle/Helper/EntriesExport.php index e91007e1..0c627dcd 100644 --- a/src/Wallabag/CoreBundle/Helper/EntriesExport.php +++ b/src/Wallabag/CoreBundle/Helper/EntriesExport.php @@ -25,7 +25,7 @@ class EntriesExport private $footerTemplate = '

Produced by wallabag with %EXPORT_METHOD%

Please open an issue if you have trouble with the display of this E-Book on your device.

- '; /** * @param Config $craueConfig CraueConfig instance to get wallabag instance url from database @@ -302,7 +302,7 @@ class EntriesExport $enclosure = '"'; $handle = fopen('php://memory', 'rb+'); - fputcsv($handle, ['Title', 'URL', 'Content', 'Tags', 'MIME Type', 'Language'], $delimiter, $enclosure); + fputcsv($handle, ['Title', 'URL', 'Content', 'Tags', 'MIME Type', 'Language', 'Creation date'], $delimiter, $enclosure); foreach ($this->entries as $entry) { fputcsv( @@ -315,6 +315,7 @@ class EntriesExport implode(', ', $entry->getTags()->toArray()), $entry->getMimetype(), $entry->getLanguage(), + $entry->getCreatedAt()->format('d/m/Y h:i:s'), ], $delimiter, $enclosure