framework/i18n/CDateFormatter.php
protected function formatTimeZone($pattern,$date)
	{
		if($pattern[0]==='z' || $pattern[0]==='v')
			return @date('T', @mktime($date['hours'], $date['minutes'], $date['seconds'], $date['mon'], $date['mday'], $date['year']));
		elseif($pattern[0]==='Z')
			return @date('P', @mktime($date['hours'], $date['minutes'], $date['seconds'], $date['mon'], $date['mday'], $date['year']));
		else
			throw new CException(Yii::t('yii','The pattern for time zone must be "z" or "v".'));
	}
protected function formatTimeZone($pattern,$date)
	{
		if($pattern[0]==='z' || $pattern[0]==='v')
			return @date('T', @mktime($date['hours'], $date['minutes'], $date['seconds'], $date['mon'], $date['mday'], $date['year']));
		elseif($pattern[0]==='Z')
			return @date('P', @mktime($date['hours'], $date['minutes'], $date['seconds'], $date['mon'], $date['mday'], $date['year']));
		else
			throw new CException(Yii::t('yii','The pattern for time zone must be "z" or "v".'));
	}
protected function formatTimeZone ( $ pattern , $ date ) { if ( $ pattern [ 0 ] === 'z' || $ pattern [ 0 ] === 'v' ) return @ date ( 'T' , @ mktime ( $ date [ 'hours' ] , $ date [ 'minutes' ] , $ date [ 'seconds' ] , $ date [ 'mon' ] , $ date [ 'mday' ] , $ date [ 'year' ] ) ) ; elseif ( $ pattern [ 0 ] === 'Z' ) return @ date ( 'P' , @ mktime ( $ date [ 'hours' ] , $ date [ 'minutes' ] , $ date [ 'seconds' ] , $ date [ 'mon' ] , $ date [ 'mday' ] , $ date [ 'year' ] ) ) ; else throw new CException ( Yii :: t ( 'yii' , 'The pattern for time zone must be "z" or "v".' ) ) ; }
Get the timezone of the server machine.
@param string $pattern a pattern.
@param array $date result of {@link CTimestamp::getdate}.
@throws CException if "timeZone" pattern is unknown
@return string time zone
@todo How to get the timezone for a different region?
Get the timezone of the server machine .