diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2021-02-08 14:52:03 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2021-02-08 19:40:49 +0000 |
| commit | dc270d8cc5085ed29f3f419c99734ddd0960c624 (patch) | |
| tree | c7866b60b56ae044a725e781399ea4514a8d4e4b /resources/views/modules/relatives/family.phtml | |
| parent | b5c9e2c414c03c542672ad19ab2336c93c22ff1c (diff) | |
| download | webtrees-dc270d8cc5085ed29f3f419c99734ddd0960c624.tar.gz webtrees-dc270d8cc5085ed29f3f419c99734ddd0960c624.tar.bz2 webtrees-dc270d8cc5085ed29f3f419c99734ddd0960c624.zip | |
CodeStyle
Diffstat (limited to 'resources/views/modules/relatives/family.phtml')
| -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) : ?> |
