aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-03-27 09:46:10 -0600
committerGitHub <noreply@github.com>2017-03-27 09:46:10 -0600
commitf76a3b532d9ee3d5362cbf8fcf9d836264fb6e00 (patch)
treefcebcca16a77de84ea2cba7fe018c84c540c1ec0 /lib
parentdc5ba954693ba95b687c517b1bad895f706c8309 (diff)
parent8de4209c3ef01889bc3aa487137129c3911ca235 (diff)
downloadnextcloud-server-f76a3b532d9ee3d5362cbf8fcf9d836264fb6e00.tar.gz
nextcloud-server-f76a3b532d9ee3d5362cbf8fcf9d836264fb6e00.zip
Merge pull request #4096 from nextcloud/touch-floor
round the mtime in touch
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/View.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index 506128d7fcd..85c70a1015e 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -569,7 +569,7 @@ class View {
$mtime = time();
}
//if native touch fails, we emulate it by changing the mtime in the cache
- $this->putFileInfo($path, array('mtime' => $mtime));
+ $this->putFileInfo($path, array('mtime' => floor($mtime)));
}
return true;
}