mirror of
https://github.com/nextcloud/server.git
synced 2026-03-27 04:43:20 -04:00
Merge pull request #8107 from owncloud/dav-negativetimestampfix
Fixed Sabre Node implementation to correctly return timestamps as int
This commit is contained in:
commit
e401df26bc
1 changed files with 6 additions and 3 deletions
|
|
@ -139,12 +139,15 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr
|
|||
|
||||
/**
|
||||
* @brief Returns the last modification time, as a unix timestamp
|
||||
* @return int
|
||||
* @return int timestamp as integer
|
||||
*/
|
||||
public function getLastModified() {
|
||||
$this->getFileinfoCache();
|
||||
return $this->fileinfo_cache['mtime'];
|
||||
|
||||
$timestamp = $this->fileinfo_cache['mtime'];
|
||||
if (!empty($timestamp)) {
|
||||
return (int)$timestamp;
|
||||
}
|
||||
return $timestamp;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue