Use localization for server default timezone on Special:Preferences
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 19 Apr 2015 17:39:23 +0000 (19:39 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Fri, 3 Jul 2015 20:21:20 +0000 (20:21 +0000)
commitaba18a06fb63ce788d57a696e84d34e98ad299ef
treec9dd5a62db93c1912c52eee1d229ee918754a9c6
parent0407248483441b55b1cf7e5b1db472b9ee7fbb6e
Use localization for server default timezone on Special:Preferences

The timezone list on Special:Preferences contains all time zones with a
localized region and also an option to use the system default value.
The message for this option gets the current server timezone as
parameter, but that parameter is not localized.
Refactor the timezone list processing into a new function and call it at
the beginning to do a lookup for the localized name and use it, if it
exists in the array.

Also changed from procedural style to object oriented style for the
DateTime processing.

Bug: T33516
Change-Id: I00e81324d0d16fbe6c9811480210ab6513461823
includes/Preferences.php