From 7fdbce6ac164240b9486177ff0b6e880869e910f Mon Sep 17 00:00:00 2001 From: Robin Appelman <icewind@owncloud.com> Date: Tue, 23 Oct 2012 16:34:58 +0200 Subject: [PATCH] use strtotime on non-nummeric times in oc_filesystem::touch --- lib/filesystemview.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/filesystemview.php b/lib/filesystemview.php index 2950ced5f9..776c859412 100644 --- a/lib/filesystemview.php +++ b/lib/filesystemview.php @@ -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) { -- GitLab