get_list_of_timezones() - backed out optimization in sorting at the database; we need to sort the translated names, not the db names. Thanks Jon for the heads up.
This commit is contained in:
+2
-2
@@ -4495,7 +4495,7 @@ function get_list_of_timezones() {
|
||||
|
||||
$timezones = array();
|
||||
|
||||
if ($rawtimezones = get_records_sql('SELECT MAX(id), name FROM '.$CFG->prefix.'timezone GROUP BY name ORDER BY name ASC')) {
|
||||
if ($rawtimezones = get_records_sql('SELECT MAX(id), name FROM '.$CFG->prefix.'timezone GROUP BY name')) {
|
||||
foreach($rawtimezones as $timezone) {
|
||||
if (!empty($timezone->name)) {
|
||||
$timezones[$timezone->name] = get_string(strtolower($timezone->name), 'timezones');
|
||||
@@ -4506,7 +4506,7 @@ function get_list_of_timezones() {
|
||||
}
|
||||
}
|
||||
|
||||
// asort($timezones);
|
||||
asort($timezones);
|
||||
|
||||
for ($i = -13; $i <= 13; $i += .5) {
|
||||
$tzstring = 'GMT';
|
||||
|
||||
Reference in New Issue
Block a user