Bug #5380
closed
setup wizard timezone should default to GMT
Added by Chris Buechler about 9 years ago.
Updated about 9 years ago.
Description
The timezone in the setup wizard defaults to the first in the list. Should default to GMT as before.
- Assignee set to Anonymous
- 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" ?
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"
- % Done changed from 0 to 100
- Status changed from Feedback to Resolved
Also available in: Atom
PDF