Commit graph

3 commits

Author SHA1 Message Date
Dan Poltawski
3fa072a187 MDL-49684 time: fix unit tests broken by refactoring 2015-04-06 11:09:25 +01:00
Petr Skoda
d6e7a63d9a 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
2015-04-06 13:53:51 +12:00
Petr Skoda
e19b37101f MDL-49684 timezones: add BC unit test first 2015-04-04 11:56:44 +13:00