mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-05 06:58:50 +00:00
[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
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ class EntriesExport
|
||||||
$publishedDate = $entry->getPublishedAt()->format('Y-m-d');
|
$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 .
|
$titlepage = $content_start .
|
||||||
'<h1>' . $entry->getTitle() . '</h1>' .
|
'<h1>' . $entry->getTitle() . '</h1>' .
|
||||||
|
|
Loading…
Reference in a new issue