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.
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.
I've rewritten is_dead() to take account of non-gregorian dates, and fixed this bug while I was there.
Thanks. Closing the bug.
Log in to post a comment.
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.
I've rewritten is_dead() to take account of non-gregorian dates, and fixed this bug while I was there.
Thanks. Closing the bug.