diff options
Diffstat (limited to 'phpBB/includes/functions.php')
| -rw-r--r-- | phpBB/includes/functions.php | 14 | 
1 files changed, 4 insertions, 10 deletions
| diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index ad5e3c05ce..cf8ae3a997 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1318,18 +1318,12 @@ function phpbb_timezone_select($user, $default = '', $truncate = false)  			$tz_dates .= '<option value="' . $timezone['offest'] . ' - ' . $timezone['current'] . '"' . $selected . '>' . $timezone['offest'] . ' - ' . $timezone['current'] . '</option>';  		} -		if (isset($user->lang['timezones'][$timezone['tz']])) +		$label = $timezone['tz']; +		if (isset($user->lang['timezones'][$label]))  		{ -			$title = $label = $user->lang['timezones'][$timezone['tz']]; -		} -		else -		{ -			// No label, we'll figure one out -			$bits = explode('/', str_replace('_', ' ', $timezone['tz'])); - -			$label = implode(' - ', $bits); -			$title = $timezone['offest'] . ' - ' . $label; +			$label = $user->lang['timezones'][$label];  		} +		$title = $timezone['offest'] . ' - ' . $label;  		if ($truncate)  		{ | 
