use strtotime on non-nummeric times in oc_filesystem::touch
This commit is contained in:
parent
ab944094e2
commit
7fdbce6ac1
|
@ -251,6 +251,9 @@ class OC_FilesystemView {
|
|||
return $this->basicOperation('filemtime', $path);
|
||||
}
|
||||
public function touch($path, $mtime=null) {
|
||||
if(!is_null($mtime) and !is_numeric($mtime)){
|
||||
$mtime = strtotime($mtime);
|
||||
}
|
||||
return $this->basicOperation('touch', $path, array('write'), $mtime);
|
||||
}
|
||||
public function file_get_contents($path) {
|
||||
|
|
Loading…
Reference in New Issue