mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
d6e7a63d9a
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
25 lines
1.0 KiB
Plaintext
25 lines
1.0 KiB
Plaintext
This files describes API changes in /calendar/* ,
|
|
information provided here is intended especially for developers.
|
|
|
|
=== 2.9 ===
|
|
default values changes in code:
|
|
* core_calendar_external::get_calendar_events_parameters() 'timeend' default option changed; now, by default,
|
|
all events are returned, not only the past ones.
|
|
* calendar types need to be updated to be compatible with standard PHP date/time code
|
|
|
|
=== 2.5 ===
|
|
required changes in code:
|
|
* calendar_add_icalendar_event() now requires a valid subscriptionid
|
|
* calendar_process_subscription_row() throws exception for invalid subscriptionid
|
|
* calendar_update_subscription_events() now throws a dml_exception instead of moodle_exception for bad subscriptions
|
|
* calendar_get_mini() function now has optional $placement and $courseid paramaters.
|
|
|
|
optional - no changes needed:
|
|
* calendar_update_subscription() should now be used to update Ical subscriptions.
|
|
|
|
=== 2.4 ===
|
|
|
|
required changes in code:
|
|
|
|
* calendar_get_popup() function now just returns id, instead of the string "id=$id"
|