summaryrefslogtreecommitdiff
path: root/resources/views/modules/relatives/family.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/modules/relatives/family.phtml')
-rw-r--r--resources/views/modules/relatives/family.phtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/views/modules/relatives/family.phtml b/resources/views/modules/relatives/family.phtml
index ec71e7012e..e97af17b59 100644
--- a/resources/views/modules/relatives/family.phtml
+++ b/resources/views/modules/relatives/family.phtml
@@ -192,7 +192,7 @@ use Fisharebest\Webtrees\Services\RelationshipService;
<?php $months = intdiv($days + 15, 30); ?>
<?php if (abs($months) === 12 || abs($months) >= 24) : ?>
- <?= I18N::plural('%s year', '%s years', round($months / 12), I18N::number(round($months / 12))) ?>
+ <?= I18N::plural('%s year', '%s years', intdiv($months, 12), I18N::number(round($months / 12))) ?>
<?php elseif ($months !== 0) : ?>
<?= I18N::plural('%s month', '%s months', $months, I18N::number($months)) ?>
<?php endif ?>