SourceForge has been redesigned. Learn more.
Close

#2900 Wrong age calculation in _topTenOldestAlive

v4.3.0
closed-fixed
None
5
2017-11-11
2013-04-07
No

The age of an 11 month old child is calculated/shown (today: 07.04.2013) as 30 month. Date of birth was 08.04.2012

Discussion

  • Louis Possoz

    Louis Possoz - 2013-04-10

    Not too hard to correct.
    Simply replace '12' with '30.4375' at lines 1713 and 1714 of file 'class_stats.php'.
    The month count equals the day count divided by the mean month length, i.e. divided by 30.4375 (=365.25/12).
    How can I help further ? Would I send the corrected file ?
    Thanks.
    Louis

     
  • Gerry Kroll

    Gerry Kroll - 2017-11-11
    • status: open --> closed-fixed
    • assigned_to: Gerry Kroll
    • Group: v4.2.4 --> v4.3.0
     
  • Gerry Kroll

    Gerry Kroll - 2017-11-11

    This appears to have been fixed in PhpGedView version 4.3.0.

    If the problem still exists after you have installed the most recent PhpGedView, please open a new bug report.

     

Log in to post a comment.