[AMOS commit] MDL-49684 timezones: rewrite timezone support Committed into Git: 2015-03-28 05:46 UTC

[AMOS commit] MDL-49684 timezones: rewrite timezone support Committed into Git: 2015-03-28 05:46 UTC

by AMOS bot -
Number of replies: 0
Author: Petr Skoda
MDL-49684 timezones: rewrite timezone support
This patch replaces all homegrown timezone
stuff with standard PHP date/time code.

The main change is the introduction of core_date
class that returns normalised user and server
timezones. From now on nobody should be using
$CFG->timezone or $user->timezone directly!

Other new features and fixes:
* admins are prompted for timezone during install
* editing of other users is finally fixed
* timezones are displayed in user profile
* new $this->setTimezone() in phpunit
* time locale is now automatically reset in phpunit
* timezone is now automatically reset in phpunit
* phpunit has Australia/Perth as default timezone


http://git.moodle.org/gw?p=moodle.git;a=commit;h=d6e7a63d9a6dcb89676a0ec4de25803895950c32
http://github.com/moodle/moodle/commit/d6e7a63d9a6dcb89676a0ec4de25803895950c32

+ 2.9 en [configtimezone,core_admin]
+ 2.9 en [timezoneinvalid,core_admin]
+ 2.9 en [timezonephpdefault,core_admin]
+ 2.9 en [timezoneserver,core_admin]