Switch rounding to flooring in Temporal::getRelativeDate

- Add tests for regression
This commit is contained in:
Hypolite Petovan 2022-12-28 00:32:26 -05:00
parent 53c0fffbec
commit a1dc6e2417
2 changed files with 19 additions and 1 deletions

View file

@ -361,7 +361,7 @@ class Temporal
foreach ($a as $secs => $str) {
$d = $etime / $secs;
if ($d >= 1) {
$r = round($d);
$r = floor($d);
// translators - e.g. 22 hours ago, 1 minute ago
if($isfuture){
$format = DI::l10n()->t('in %1$d %2$s');