mirror of https://github.com/wallabag/wallabag.git
[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:
parent
18d46f0f68
commit
26a4030e87
|
@ -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>' .
|
||||
|
|
Loading…
Reference in New Issue