Index: includes/settings.php =================================================================== --- includes/settings.php (revision 1281) +++ includes/settings.php (working copy) @@ -48,6 +48,7 @@ 'trackertitle' => array('textbox', '', false, _('Tracker Title'), _('The global name of the bug tracker. Example: Blue Static Bug Tracker')), 'trackerurl' => array('textbox', '', false, _('Tracker Base URL'), _('The base URL of the tracker. This is used when creating external links to the tracker. Be sure that this does not end in a trailing slash ("/").
Example: http://www.bluestatic.org/bugs')), 'dateformat' => array('textbox', 'F j, Y h:i:s A', false, _('Date Format'), _('Set the date format used for bug report and comment information. This is based on PHP\'s date() function.')), + 'defaulttimezone' => array('" . construct_option_select("setting[defaulttimezone]", $bugsys->datef->fetch_timezone_list(), $bugsys->options["defaulttimezone"]) . "', 0, false, _('Default Time Zone'), _('This controls the time zone that all unregistered users view the tracker with.')), 'defaultlanguage' => array('" . construct_option_select("setting[defaultlanguage]", $bugsys->datastore["language"], $bugsys->options["defaultlanguage"], "languageid", "title") . "', 1, false, _('Default Language'), _('You can set the default language that all new users (and guests) will use.')), 'syndicateditems' => array('textbox', 10, false, _('Number of Syndicated Items'), _('The number of bugs to be syndicated at any one time by the Atom XML feed.')) ), Index: includes/functions.php =================================================================== --- includes/functions.php (revision 1281) +++ includes/functions.php (working copy) @@ -540,7 +540,7 @@ function fetch_guest_user() { global $bugsys; - + return array( 'usergroupid' => 1, 'userid' => 0, @@ -549,6 +549,7 @@ 'showcolors' => 1, 'permissions' => $bugsys->datastore['usergroup'][1]['permissions'], 'displaytitle' => $bugsys->datastore['usergroup'][1]['displaytitle'], + 'timezone' => $bugsys->options['defaulttimezone'] ); } Index: register.php =================================================================== --- register.php (revision 1284) +++ register.php (working copy) @@ -80,6 +80,7 @@ $user->set('showemail', $bugsys->in['showemail']); $user->set('showcolors', 1); $user->set('languageid', $bugsys->in['languageid']); + $user->set('timezone', $bugsys->options['defaulttimezone']); $user->set('usergroupid', $usergroupid); if (!$message->items)