mirror of
https://github.com/moodle/moodle.git
synced 2025-02-27 21:43:23 +01:00
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
12 lines
438 B
Gherkin
12 lines
438 B
Gherkin
@core
|
|
Feature: View timezone defaults
|
|
In order to run all other behat tests
|
|
As an admin
|
|
I need to verify the default timezone is Australia/Perth
|
|
|
|
Scenario: Admin sees default timezone Australia/Perth
|
|
When I log in as "admin"
|
|
And I navigate to "Location settings" node in "Site administration > Location"
|
|
Then I should see "Default: Australia/Perth"
|
|
And the field "Default timezone" matches value "Australia/Perth"
|