From 96ed33b5a60800ae93d981a1ab4ede0aad955b7b Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 27 Apr 2010 11:30:15 +0000 Subject: [PATCH] Updated class user -Fixed problem with date of birth and copy & paste git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17879 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/personal/generic/class_user.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index b44b93ba2..7e02c71ed 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -1643,6 +1643,18 @@ class user extends plugin $this->old_userPKCS12= ""; $this->old_userSMIMECertificate= ""; $this->old_userCertificate= ""; + + /* Generate dateOfBirth entry */ + if (isset ($source['dateOfBirth'])){ + + /* This entry is ISO 8601 conform */ + list($year, $month, $day)= explode("-", $source['dateOfBirth'][0], 3); + +#TODO: use $lang to convert date + $this->dateOfBirth= "$day.$month.$year"; + } else { + $this->dateOfBirth= ""; + } } -- 2.30.2