-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
2.7.2, 2.8
-
None
-
MOODLE_27_STABLE, MOODLE_28_STABLE
The cron task file_temp_cleanup_task checks for files older than 1 week using the relative strtotime('-1 week') method which will account for DST changes.
However, the unit tests for this function determine a week ago using hardcoded 7*24*60*60 instead - which does NOT account for DST. Both of these need to be calculating a week ago in the same way, otherwise for the week following a DST change like we just had this past weekend, the test will fail.
- duplicates
-
MDL-47572 PHP unit test for cron deletion of temporary files & directories fails.
-
- Closed
-