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:
martinlanghoff
2005-05-20 00:50:45 +00:00
parent 7641e51553
commit b9bb37f30d
+2 -2
View File
@@ -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';