@@ -399,14 +399,14 @@ private static function _valueFromLdapDateTime($value) { $matches = array(); - if (preg_match('/^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})([+-]\d{4}|Z)$/', $value, $matches)) { + if (preg_match('/^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\.0)?([+-]\d{4}|Z)$/', $value, $matches)) { $year = $matches[1]; $month = $matches[2]; $day = $matches[3]; $hour = $matches[4]; $minute = $matches[5]; $second = $matches[6]; - $timezone = $matches[7]; + $timezone = $matches[8]; $date = gmmktime($hour, $minute, $second, $month, $day, $year); if ($timezone !== 'Z') { $tzDirection = substr($timezone, 0, 1);