Comment 4 for bug 1166054

Revision history for this message
fisharebest (fisharebest) wrote :

webtrees works with a number of different calendars.

One's age can be different, depending on which calendar one uses. It is possible for someone to be 51 years old (gregorian), 52 years old (jewish) and 53 years old (arabic) at the same time.

Hence you may have someone aged 52 who is older than someone who is aged 53 (!)

The calendar calculations are quite complex, and hence quite slow.

The statistics make a number of simplications to allow them to improve performance. The "solar year" approximation is one of them. You'll see it throughout the Stats.php module.

In this particular case, it should be possible to calculate the "calendar" age (rather than the solar-year age"), as this is done after the "heavy lifting" part.