diff --git a/src/WebDAVAdapter.php b/src/WebDAVAdapter.php index 92e29e6..bd6fe9b 100644 --- a/src/WebDAVAdapter.php +++ b/src/WebDAVAdapter.php @@ -391,7 +391,13 @@ protected function normalizeObject(array $object, $path) $result = Util::map($object, static::$resultMap); if (isset($object['{DAV:}getlastmodified'])) { - $result['timestamp'] = strtotime($object['{DAV:}getlastmodified']); + $datestring = $object['{DAV:}getlastmodified']; + $result['timestamp'] = strtotime($datestring); + + if ($result['timestamp'] === false) { + $datestring = substr($datestring, 0, strrpos($datestring, ' ')); + $result['timestamp'] = strtotime($datestring); + } } $result['type'] = 'file';