Code

Updated rendering of dateOfBirth attribute.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 29 Nov 2010 12:40:40 +0000 (12:40 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 29 Nov 2010 12:40:40 +0000 (12:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20406 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/generic/infoPage/class_infoPage.inc

index 129c389676d6d748e01ce227a849684cffa86074..f88502bce8e5fbfe6e18e318b61dd8fdd276dafe 100644 (file)
@@ -107,6 +107,12 @@ class infoPage extends plugin
 
         session::set('binary',$this->attrs['jpegPhoto'][0]);
         session::set('binarytype',"image/jpeg");
+
+        // Set date of birth
+        if(isset($this->attrs['dateOfBirth'][0])){
+            $smarty->assign("dateOfBirth", date('d.m.Y',strtotime($this->attrs['dateOfBirth'][0])));
+        }
+
         $smarty->assign("rand", rand(0, 99999999));
         $smarty->assign("personalInfoAllowed", $personalInfoAllowed);
         $smarty->assign("attrs", $this->attrs);