03-25-2007, 07:38 AM
As it seems, both timezone and DST setting are set per user, so the settings in the Admin CP are just for unregistered users, am I right?
I cant see no reason why any user has to correct his DST setting by himself, when I corrected it globally already.
I think there should be a new "Default" option for the timezone option, as we already have it for date- and time format which simply clears the field in the database.
I achieved this for me by editing inc/functions.php:
This way all users that have their own timezone set will get it, anyone else will get the global standard.
What is missing now is the default option in the User-CP and the registration.
I cant see no reason why any user has to correct his DST setting by himself, when I corrected it globally already.
I think there should be a new "Default" option for the timezone option, as we already have it for date- and time format which simply clears the field in the database.
I achieved this for me by editing inc/functions.php:
PHP Code:
if($mybb->user['uid'] != 0 && array_key_exists("timezone", $mybb->user))
{
if (!empty($mybb->user['timezone'])) {
$offset = $mybb->user['timezone'];
$dstcorrection = $mybb->user['dst'];
} else {
$offset = $mybb->settings['timezoneoffset'];
$dstcorrection = $mybb->settings['dstcorrection'];
}
}
What is missing now is the default option in the User-CP and the registration.
