Error in calculating age of individual whose DOB/DOD include "before..."
Though I have double checked that the relevant dates were entered and standardized as intended, the "Brief Life History" on the "About" tab on an individual whose profile I was just viewing states:
"When [individual] was born before 1759, in [county], Pennsylvania, British Colonial America, his [father] was 11755 and his [mother] was 39. ... He died before 3 December 1835, in [county, state], United States, at the age of 11832, and was buried in [county/state], United States."
Here, it's worth noting his DOB was entered as "before 1759" and his DOD was entered as "before 3 December 1735". His father's DOB was entered as "before 1724" but his mother's DOB was entered simply as "1720". The difference in how it calculated his father's age versus his mother's age led me to look at his children's About tabs. They have specific DOBs entered and miscalculate his age at their births. Thus, the algorithm's performance calculating duration appears to be as follows:
"before..." beginDate & "before..." endDate --> miscalculation
"before..." beginDate & specific endDate --> miscalculation
specific beginDate & "before..." endDate --> correct calculation
specific beginDate & specific endDate --> correct calculation
There also appears to be a similar issue when there is an "after..." endDate. I suspect it's a problem related to the epoch and not a parse error, though I've not looked at profiles with post-1900 "before..."/"after..." dates to verify that theory.
Comentarios
-
Can you provide some example PIDs so we can look into the issue?
0