Skip to content

Commit

Permalink
Try hard to avoid FP "Date of baptism (17 Jun 1877) before date of bi…
Browse files Browse the repository at this point in the history
…rth (1877)"
  • Loading branch information
nigelhorne committed Aug 8, 2024
1 parent 4bf874c commit daa6836
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ged2site
Original file line number Diff line number Diff line change
Expand Up @@ -2439,7 +2439,11 @@ sub print_person
$dateofbaptism =~ s/^0//;
}
if($dateofbaptism && $dateofbirth && ($dateofbirth !~ /^abt\s/i) && ($dateofbaptism !~ /^bet \d{3,4} and \d{3,4}$/) && (datecmp($dateofbaptism, $dateofbirth) <= 0)) {
complain({ person => $person, warning => "Date of baptism ($dateofbaptism) before date of birth ($dateofbirth)" });

# Try hard to avoid FP "Date of baptism (17 Jun 1877) before date of birth (1877)"
if((get_year_from_date($dateofbirth) != get_year_from_date($dateofbaptism)) || (($dateofbirth =~ /\D/) && ($dateofbaptism =~ /\D/))) {
complain({ person => $person, warning => "Date of baptism ($dateofbaptism) before date of birth ($dateofbirth)" });
}
}
my $placeofbaptism = get_value({ person => $person, value => 'baptism place' });
if((!$placeofbaptism) && $baptism) {
Expand Down

0 comments on commit daa6836

Please sign in to comment.