mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-22 16:33:48 +01:00
- LSattr_ldap_date : Gestion du cas paticulier du stockage d'un timestamp UNIX.
This commit is contained in:
parent
467510201e
commit
ca48658a32
1 changed files with 6 additions and 0 deletions
|
@ -37,6 +37,9 @@ class LSattr_ldap_date extends LSattr_ldap {
|
|||
if(!is_array($data)) {
|
||||
$data=array($data);
|
||||
}
|
||||
if ($this -> config['ldap_options']['timestamp']==1) {
|
||||
return $data;
|
||||
}
|
||||
$retval=array();
|
||||
foreach($data as $val) {
|
||||
$date = strptime($val,$this -> getFormat());
|
||||
|
@ -55,6 +58,9 @@ class LSattr_ldap_date extends LSattr_ldap {
|
|||
* @retval mixed La valeur traitée de l'attribut
|
||||
*/
|
||||
function getUpdateData($data) {
|
||||
if ($this -> config['ldap_options']['timestamp']==1) {
|
||||
return $data;
|
||||
}
|
||||
$retval=array();
|
||||
if(is_array($data)) {
|
||||
foreach($data as $val) {
|
||||
|
|
Loading…
Reference in a new issue