Bug #5380
closedsetup wizard timezone should default to GMT
100%
Description
The timezone in the setup wizard defaults to the first in the list. Should default to GMT as before.
Updated by Anonymous almost 9 years ago
- Status changed from Confirmed to Feedback
- Assignee changed from Anonymous to Chris Buechler
The 2.2 code seems to do the opposite! It creates a selector using the timezonelist, but removes GMT from that list.
The default is the current config->timezone. The timezone is not included in the default config.xml hence it uses the first in the list.
// timezone selector from REL2.2 echo "<select class='formselect' name='{$name}'>\n"; foreach ($timezonelist as $tz) { if (strstr($tz, "GMT")) { continue; } $SELECTED = ""; if ($value == $tz) { $SELECTED = " selected=\"selected\""; } echo "<option value=\"" . htmlspecialchars($tz) . "\" {$SELECTED}>"; echo htmlspecialchars($tz); echo "</option>\n"; } echo "</select>\n";
Easy enough to adopt the behavior you suggest, but is that really "as before" ?
Updated by Anonymous almost 9 years ago
The default config.xml used to contain "<timezone>"Etc/UDT"</timezone> but that was recently removed when changing from a static TZ the FreeBSD TZ.
That value has now been added to wizard.php as a default if no timezone is set. IOW it now defaults to "Etc/UDT"
Updated by Anonymous almost 9 years ago
- % Done changed from 0 to 100
Applied in changeset pfsense:f8ae35862e05b1d5b43678144071a6e03ab8c3c5.