Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.9.1, 3.0
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MDL-50687-master -
Description
MDL-49684 revamped timezone support (yay). According to the commit message "phpunit has Australia/Perth as default timezone." I don't think this is working. Starting with 2.9 I'm getting 1800+ warnings like this one:
1) qtype_numerical_attempt_upgrader_test::test_numerical_deferredfeedback_history620
Warning: unexpected change of locale/var/www/moodle/htdocs/lib/phpunit/classes/util.php:272
/var/www/moodle/htdocs/lib/phpunit/classes/advanced_testcase.php:125To re-run:
vendor/bin/phpunit qtype_numerical_attempt_upgrader_test question/type/numerical/tests/upgradelibnewqe_test.php
I'm seeing this in instances where Moodle and PHPUnit have been installed from the command line. The locale on these systems is en_US.UTF-8.