From 21f3ea11482967a176d0ebe791d105a1276175ec Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 29 Nov 2010 12:40:40 +0000 Subject: [PATCH] Updated rendering of dateOfBirth attribute. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20406 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/generic/infoPage/class_infoPage.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gosa-core/plugins/generic/infoPage/class_infoPage.inc b/gosa-core/plugins/generic/infoPage/class_infoPage.inc index 129c38967..f88502bce 100644 --- a/gosa-core/plugins/generic/infoPage/class_infoPage.inc +++ b/gosa-core/plugins/generic/infoPage/class_infoPage.inc @@ -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); -- 2.30.2