In the Individual view, the father and mother display the date in YYYY-MM-DD format but the children still display YYYY-MM-DD HH:MM:SS format, which is almost always 00:00:00 and should probably not be displayed. I tried to make a patch to omit the time part in the view.inc file:

--- view.bak	2010-03-17 22:35:34.000000000 -0600
+++ view.inc	2010-03-17 22:42:21.000000000 -0600
@@ -141,7 +141,11 @@
       $content .= '<p>Children of '. family_make_name($nid, FALSE) .' and '. $spousename .':</p>';
       $content .= '<p><table width=100% border=1><tr><td>Name</td><td>Gender</td><td>Birth Date</td><td>Death Date</td></tr>';
       while ($child = db_fetch_array($children)) {
-        $content .= "<tr><td>". family_make_name($child['nid'], TRUE)."</td><td>". $child['gender']."</td><td>". $child['birthdate']."</td><td>". $child['deathdate']."</td
></tr>";
+        $childbirthdate=explode(' ', $child['birthdate']);
+        $childbirthdate=$childbirthdate[0];
+	$childdeathdate=explode(' ', $child['deathdate']);
+	$childdeathdate=$childdeathdate[0];
+        $content .= "<tr><td>". family_make_name($child['nid'], TRUE)."</td><td>". $child['gender']."</td><td>". $childbirthdate ."</td><td>". $childdeathdate ."</td></tr>
";
       }
       $content .= "</table>";
       }

Comments

jerdiggity’s picture

Assigned: Unassigned » jerdiggity
jerdiggity’s picture

Status: Active » Fixed

Please see the 2.0 beta release.

Thanks!

j

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.