diff --git a/reference/filesystem/functions/stat.xml b/reference/filesystem/functions/stat.xml index a765b3c3df..5409da549d 100644 --- a/reference/filesystem/functions/stat.xml +++ b/reference/filesystem/functions/stat.xml @@ -211,9 +211,9 @@ if (!$stat) { } else { /* * We want the access time to be 1 week - * before the current access time. + * after the current access time. */ - $atime = strtotime('-1 week', $stat['atime']); + $atime = $stat['atime'] + 604800; /* Touch the file */ if (!touch('some_file.txt', time(), $atime)) {