classes/Events/API/Util.php
public static function getTimezonesByCountry() {
		$timezones = array();
		$tz_ids = array_keys(self::getTimezones(true, false, 'now', self::TIMEZONE_SORT_OFFSET));
		foreach ($tz_ids as $tz_id) {
			if ($tz_id == Util::UTC) {
				continue;
			}
			$info = Util::getTimezoneInfo($tz_id);
			$cc = $info->country_code;
			$abbr = $info->abbr;
			if (!isset($timezones[$cc])) {
				$timezones[$cc] = array();
			}
			$timezones[$cc][] = $info;
		}
		ksort($timezones);
		return $timezones;
	}
public static function getTimezonesByCountry() {
		$timezones = array();
		$tz_ids = array_keys(self::getTimezones(true, false, 'now', self::TIMEZONE_SORT_OFFSET));
		foreach ($tz_ids as $tz_id) {
			if ($tz_id == Util::UTC) {
				continue;
			}
			$info = Util::getTimezoneInfo($tz_id);
			$cc = $info->country_code;
			$abbr = $info->abbr;
			if (!isset($timezones[$cc])) {
				$timezones[$cc] = array();
			}
			$timezones[$cc][] = $info;
		}
		ksort($timezones);
		return $timezones;
	}
public static function getTimezonesByCountry ( ) { $ timezones = array ( ) ; $ tz_ids = array_keys ( self :: getTimezones ( true , false , 'now' , self :: TIMEZONE_SORT_OFFSET ) ) ; foreach ( $ tz_ids as $ tz_id ) { if ( $ tz_id == Util :: UTC ) { continue ; } $ info = Util :: getTimezoneInfo ( $ tz_id ) ; $ cc = $ info -> country_code ; $ abbr = $ info -> abbr ; if ( ! isset ( $ timezones [ $ cc ] ) ) { $ timezones [ $ cc ] = array ( ) ; } $ timezones [ $ cc ] [ ] = $ info ; } ksort ( $ timezones ) ; return $ timezones ; }
Returns an array of timezones by country
@return array
Returns an array of timezones by country