diff --git a/lib/tests/cronlib_test.php b/lib/tests/cronlib_test.php index 4d7a1b5e1a7..66b33a99dcd 100644 --- a/lib/tests/cronlib_test.php +++ b/lib/tests/cronlib_test.php @@ -44,8 +44,8 @@ class cronlib_testcase extends basic_testcase { // Relative time stamps. Did you know data providers get executed during phpunit init? $lastweekstime = strtotime('-1 week') - time(); - $beforelastweekstime = $lastweekstime - 60; - $afterlastweekstime = $lastweekstime + 60; + $beforelastweekstime = $lastweekstime - 3600 - 1; // At least 1h and 1s diff (make it DST immune). + $afterlastweekstime = $lastweekstime + 3600 + 1; // At least 1h and 1s diff (make it DST immune). $nodes = array(); // Really old directory to remove.