diff --git a/ged2site b/ged2site index e67b4939..8592e6f3 100755 --- a/ged2site +++ b/ged2site @@ -5292,7 +5292,7 @@ sub print_person $p2 =~ s/^\s+//; complain({ person => $person, warning => "Location for $date ($p2) differs from mother's ($p1)" }); } - if($date ne $rdate) { + if(datecmp($date, $rdate) != 0) { complain({ person => $person, warning => "Date of residence ($rdate) differs from mother's in same year ($date)" }); } last;