forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-50704 user: Do not validate timezones in user objects
The validation of the timezone field should not occur, especially when it is automatically cleaned. Timezones can be volatile, we must try hard to fallback on real timezones and must not lose reset the values arbitrarily. "There is absolutely no need to change $CFG->timezone and user timezones in database - the timezones may come and go. If you change the value in upgrade or on the fly you would not be able to get it back. This is the reason why I implemented the "invalid timezone" thing in server and user settings instead." - Petr Skoda (MDL-49684)
- Loading branch information
Frederic Massart
committed
May 9, 2016
1 parent
88474db
commit 16825c4
Showing
3 changed files
with
12 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters