-
Bug
-
Resolution: Fixed
-
Major
-
3.2.2, 3.4, 3.5.3, 3.6.1
-
MOODLE_32_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
MDL-58596-master -
When the statistics cron component (stats_cron_task) "first runs" it tries to gather all the previous weeks statistics by calculating the beginning/ending of each week's begin/end in unixtime
But it miscalculates the beginning/end of the weeks that contain Daylight Savings Time changes.
In my case, it caused an infinite loop.
The cause: in the file 'statslib.php' the function 'stats_get_next_week' blindly adds 1 weeks worth of seconds. But, if the week contains a DST change, it should +/- an 3600 seconds to prevent looping.