summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-03-27 17:04:55 +0200
committerRobin Appelman <robin@icewind.nl>2017-03-27 17:07:48 +0200
commit8de4209c3ef01889bc3aa487137129c3911ca235 (patch)
treeec34187ff3c7e9b217c9100e586ea83a833de145 /lib/private/Files
parentf154b1d32ce0d469e5c4f96195e169f1aa4d5406 (diff)
downloadnextcloud-server-8de4209c3ef01889bc3aa487137129c3911ca235.tar.gz
nextcloud-server-8de4209c3ef01889bc3aa487137129c3911ca235.zip
round the mtime in touch
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files')
-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;
}