[FIX] round reading time in export

Before this commit, the exported entry (pdf, epub,...) could look like:

Estimated reading time:
2.6666666666667 min

Now it will be:
Estimated reading time
3 min
This commit is contained in:
Martin Trigaux 2023-05-24 17:03:30 +02:00
parent 18d46f0f68
commit 26a4030e87
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ class EntriesExport
$publishedDate = $entry->getPublishedAt()->format('Y-m-d');
}
$readingTime = $entry->getReadingTime() / $user->getConfig()->getReadingSpeed() * 200;
$readingTime = round($entry->getReadingTime() / $user->getConfig()->getReadingSpeed() * 200);
$titlepage = $content_start .
'<h1>' . $entry->getTitle() . '</h1>' .