#1981 Age at which to assume a person is dead Off By 1 Year

v4.1.4
closed-fixed
None
5
2009-11-08
2008-04-14
KosherJava
No

I have my site set to "Age at which to assume a person is dead" = 100, yet it shows a living person who was born in December 1908 who is only 99 now. Changing the value to 101 hides this person.

Discussion

  • Greg Roach

    Greg Roach - 2008-04-14

    Logged In: YES
    user_id=1466942
    Originator: NO

    The is_dead() function us very simplistic. It just looks at years, and assumes all years are gregorian.

    Changing <$MAX_ALIVE_YEARS to <=$MAX_ALIVE_YEARS would fix this initial problem, but leaves all the others.

    It needs a bit of a rewrite, to make use of the proper date libraries.

     
  • Greg Roach

    Greg Roach - 2008-11-17
    • milestone: --> v4.1.4
     
  • Greg Roach

    Greg Roach - 2009-11-07

    I've rewritten is_dead() to take account of non-gregorian dates, and fixed this bug while I was there.

     
  • Greg Roach

    Greg Roach - 2009-11-07
    • assigned_to: nobody --> fisharebest
    • status: open --> pending-fixed
     
  • KosherJava

    KosherJava - 2009-11-08
    • status: pending-fixed --> closed-fixed
     
  • KosherJava

    KosherJava - 2009-11-08

    Thanks. Closing the bug.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks