Project

General

Profile

Actions

Bug #5380

closed

setup wizard timezone should default to GMT

Added by Chris Buechler about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Low
Target version:
Start date:
11/07/2015
Due date:
% Done:

100%

Estimated time:

Description

The timezone in the setup wizard defaults to the first in the list. Should default to GMT as before.

Actions #1

Updated by Anonymous about 9 years ago

  • Assignee set to Anonymous
Actions #2

Updated by Anonymous about 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" ?

Actions #3

Updated by Anonymous about 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"

Actions #4

Updated by Anonymous about 9 years ago

  • % Done changed from 0 to 100
Actions #5

Updated by Chris Buechler about 9 years ago

  • Status changed from Feedback to Resolved

fixed

Actions

Also available in: Atom PDF