diff options
Diffstat (limited to 'resources/views/modules/relatives')
| -rw-r--r-- | resources/views/modules/relatives/family.phtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/views/modules/relatives/family.phtml b/resources/views/modules/relatives/family.phtml index 6323648f60..6ce5ed6b58 100644 --- a/resources/views/modules/relatives/family.phtml +++ b/resources/views/modules/relatives/family.phtml @@ -178,7 +178,7 @@ use Fisharebest\Webtrees\Individual; <?= view('icons/warning') ?> <?php endif ?> - <?php $months = round($days / 30); ?> + <?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))) ?> <?php elseif ($months !== 0) : ?> |
