X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FHelper%2FEntriesExport.php;h=1318602e2723ff0df40288ebedb51f1acedb3119;hb=HEAD;hp=f981ee50e61b8a323ae091f97f1139b82896de17;hpb=41d476d7e74b752e693a1b70e68b8cb05045653f;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Helper/EntriesExport.php b/src/Wallabag/CoreBundle/Helper/EntriesExport.php index f981ee50..1318602e 100644 --- a/src/Wallabag/CoreBundle/Helper/EntriesExport.php +++ b/src/Wallabag/CoreBundle/Helper/EntriesExport.php @@ -196,10 +196,17 @@ class EntriesExport $authors = implode(',', $publishedBy); } + $publishedAt = $entry->getPublishedAt(); + $publishedDate = $this->translator->trans('export.unknown'); + if (!empty($publishedAt)) { + $publishedDate = $entry->getPublishedAt()->format('Y-m-d'); + } + $titlepage = $content_start . '

' . $entry->getTitle() . '

' . '
' . '
' . $this->translator->trans('entry.view.published_by') . '
' . $authors . '
' . + '
' . $this->translator->trans('entry.metadata.published_on') . '
' . $publishedDate . '
' . '
' . $this->translator->trans('entry.metadata.reading_time') . '
' . $this->translator->trans('entry.metadata.reading_time_minutes_short', ['%readingTime%' => $entry->getReadingTime()]) . '
' . '
' . $this->translator->trans('entry.metadata.added_on') . '
' . $entry->getCreatedAt()->format('Y-m-d') . '
' . '
' . $this->translator->trans('entry.metadata.address') . '
' . $entry->getUrl() . '
' .