diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-09-08 16:38:08 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-09-08 16:49:21 +0200 |
commit | 9401696fe4ac78863fa5318de9cd9765c3a139bf (patch) | |
tree | 84fae8a20d5203e6c58fdc7e67f56404e1eacfe2 /src/Wallabag/CoreBundle/Helper | |
parent | 6f23289e721bd14710af1acc23466432c1312850 (diff) | |
download | wallabag-9401696fe4ac78863fa5318de9cd9765c3a139bf.tar.gz wallabag-9401696fe4ac78863fa5318de9cd9765c3a139bf.tar.zst wallabag-9401696fe4ac78863fa5318de9cd9765c3a139bf.zip |
Export dates from entries
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper')
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/EntriesExport.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/EntriesExport.php b/src/Wallabag/CoreBundle/Helper/EntriesExport.php index 0cf835b4..73276319 100644 --- a/src/Wallabag/CoreBundle/Helper/EntriesExport.php +++ b/src/Wallabag/CoreBundle/Helper/EntriesExport.php | |||
@@ -298,7 +298,7 @@ class EntriesExport | |||
298 | $enclosure = '"'; | 298 | $enclosure = '"'; |
299 | $handle = fopen('php://memory', 'rb+'); | 299 | $handle = fopen('php://memory', 'rb+'); |
300 | 300 | ||
301 | fputcsv($handle, ['Title', 'URL', 'Content', 'Tags', 'MIME Type', 'Language'], $delimiter, $enclosure); | 301 | fputcsv($handle, ['Title', 'URL', 'Content', 'Tags', 'MIME Type', 'Language', 'Creation date'], $delimiter, $enclosure); |
302 | 302 | ||
303 | foreach ($this->entries as $entry) { | 303 | foreach ($this->entries as $entry) { |
304 | fputcsv( | 304 | fputcsv( |
@@ -311,6 +311,7 @@ class EntriesExport | |||
311 | implode(', ', $entry->getTags()->toArray()), | 311 | implode(', ', $entry->getTags()->toArray()), |
312 | $entry->getMimetype(), | 312 | $entry->getMimetype(), |
313 | $entry->getLanguage(), | 313 | $entry->getLanguage(), |
314 | $entry->getCreatedAt()->format('d/m/Y h:i:s'), | ||
314 | ], | 315 | ], |
315 | $delimiter, | 316 | $delimiter, |
316 | $enclosure | 317 | $enclosure |