public static function getDateTimeAttribute(array $data, $attribName, $index = null)
{
$values = self::getAttribute($data, $attribName, $index);
if (is_array($values)) {
for ($i = 0; $i < count($values); $i++) {
$newVal = self::_valueFromLdapDateTime($values[$i]);
if ($newVal !== null) {
$values[$i] = $newVal;
}
}
} else {
$newVal = self::_valueFromLdapDateTime($values);
if ($newVal !== null) {
$values = $newVal;
}
}
return $values;
}