-
Bug
-
Resolution: Fixed
-
Critical
-
2.7, 2.8.1, 2.8.7
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MOODLE_28_STABLE
-
-
-
Team Beards Sprint 9, Team Beards Sprint 10
-
Medium
I ran the Web cron and this came up:
Notice: date_default_timezone_set(): Timezone ID '-13.0' is invalid in /home/fred/www/repositories/sm/moodle/lib/classes/task/scheduled_task.php on line 302
|
|
Call Stack:
|
0.0001 241752 1. {main}() /home/fred/www/repositories/sm/moodle/admin/cron.php:0
|
0.0960 15719720 2. cron_run() /home/fred/www/repositories/sm/moodle/admin/cron.php:81
|
1.4107 25761776 3. core\task\manager::scheduled_task_complete() /home/fred/www/repositories/sm/moodle/lib/cronlib.php:79
|
1.4114 25765176 4. core\task\scheduled_task->get_next_scheduled_time() /home/fred/www/repositories/sm/moodle/lib/classes/task/manager.php:589
|
1.4115 25778000 5. date_default_timezone_set() /home/fred/www/repositories/sm/moodle/lib/classes/task/scheduled_task.php:302
|
Coming from:
if (!empty($CFG->timezone) && $CFG->timezone != 99) {
|
date_default_timezone_set($CFG->timezone);
|
}
|
Unfortunately, the setting timezone is not compatible with date_default_timezone_set. I do not know the implications of this, but I suspect that this would lead to random tasks executions.
- Discovered while testing
-
MDL-46545 Weekly stats breaking after MDL-41284
- Closed
-
MDLSITE-3724 Upgrade learn.moodle.net to 2.8.2
- Resolved
- has a non-specific relationship to
-
MDL-50006 Est timezones are stored/updated with wrong information
- Closed
-
MDL-48442 On task install/upgrade, calculate next run time instead of running immediately
- Closed
-
MDL-51266 Review incorrect phpunit_util uses and replace them by correct advanced_testcase extra methods
- Closed
-
MDL-49073 Update timezones info to latest version available (2015a)
- Closed
-
MDL-22465 Timezones aren't installed to Moodle on initial install
- Closed
- will be (partly) resolved by
-
MDL-49684 Replace custom Moodle timezone stuff with standard PHP date/time code
- Closed