diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index a9f2cb4af5..80a5e1d6f4 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2012-04-19 Vanessa Gil + + * godmode/setup/setup.php: Changed timezone by default. + 2012-04-19 Vanessa Gil * operation/tree.php: Changes in tab os. diff --git a/pandora_console/godmode/setup/setup.php b/pandora_console/godmode/setup/setup.php index 944df2f30a..ae1b35a316 100644 --- a/pandora_console/godmode/setup/setup.php +++ b/pandora_console/godmode/setup/setup.php @@ -211,8 +211,8 @@ foreach ($zones as $zone) { $zone_name[$name] = $name; } } - -$timezones = db_get_all_rows_sql ("SELECT timezone FROM ttimezone WHERE zone='Africa'"); +$zone_selected = get_parameter('zone', 'Europe'); +$timezones = db_get_all_rows_sql ("SELECT timezone FROM ttimezone WHERE zone='$zone_selected'"); foreach ($timezones as $timezone) { foreach ($timezone as $key=>$name_tz) { if ($key == 'timezone') @@ -223,7 +223,7 @@ foreach ($timezones as $timezone) { $table->data[23][0] = __('Timezone setup'); $table->data[23][1] = html_print_input_text_extended ('timezone_text', $config["timezone"], 'text-timezone_text', '', 25, 25, false, '', 'readonly', true); $table->data[23][1] .= ''.html_print_image ('images/pencil.png', true, array ('title' => __('Change timezone'))).''; -$table->data[23][1] .= "  ". html_print_select($zone_name, 'zone', 'None', 'show_timezone();', '', '', true); +$table->data[23][1] .= "  ". html_print_select($zone_name, 'zone', $zone_selected, 'show_timezone();', '', '', true); $table->data[23][1] .= "  ". html_print_select($timezone_n, 'timezone', $config["timezone"], '', '', '', true);