original_string: public function getTimezonesList()
      {
          if (!SettingsServer::isTimezoneSupportEnabled()) {
              return array('UTC' => $this->getTimezonesListUTCOffsets());
          }
  
          $countries = StaticContainer::get('Piwik\Intl\Data\Provider\RegionDataProvider')->getCountryList();
  
          $return = array();
          $continents = array();
          foreach ($countries as $countryCode => $continentCode) {
              $countryCode = strtoupper($countryCode);
              $timezones = DateTimeZone::listIdentifiers(DateTimeZone::PER_COUNTRY, $countryCode);
              foreach ($timezones as $timezone) {
                  if (!isset($continents[$continentCode])) {
                      $continents[$continentCode] = Piwik::translate('Intl_Continent_' . $continentCode);
                  }
                  $continent = $continents[$continentCode];
  
                  $return[$continent][$timezone] = $this->getTimezoneName($timezone, $countryCode, count($timezones) > 1);
              }
          }
  
          // Sort by continent name and then by country name.
          ksort($return);
          foreach ($return as $continent => $countries) {
              asort($return[$continent]);
          }
  
          $return['UTC'] = $this->getTimezonesListUTCOffsets();
          return $return;
      }
code: public function getTimezonesList()
      {
          if (!SettingsServer::isTimezoneSupportEnabled()) {
              return array('UTC' => $this->getTimezonesListUTCOffsets());
          }
  
          $countries = StaticContainer::get('Piwik\Intl\Data\Provider\RegionDataProvider')->getCountryList();
  
          $return = array();
          $continents = array();
          foreach ($countries as $countryCode => $continentCode) {
              $countryCode = strtoupper($countryCode);
              $timezones = DateTimeZone::listIdentifiers(DateTimeZone::PER_COUNTRY, $countryCode);
              foreach ($timezones as $timezone) {
                  if (!isset($continents[$continentCode])) {
                      $continents[$continentCode] = Piwik::translate('Intl_Continent_' . $continentCode);
                  }
                  $continent = $continents[$continentCode];
  
                  $return[$continent][$timezone] = $this->getTimezoneName($timezone, $countryCode, count($timezones) > 1);
              }
          }
  
          // Sort by continent name and then by country name.
          ksort($return);
          foreach ($return as $continent => $countries) {
              asort($return[$continent]);
          }
  
          $return['UTC'] = $this->getTimezonesListUTCOffsets();
          return $return;
      }
code_tokens: public function getTimezonesList ( ) { if ( ! SettingsServer :: isTimezoneSupportEnabled ( ) ) { return array ( 'UTC' => $ this -> getTimezonesListUTCOffsets ( ) ) ; } $ countries = StaticContainer :: get ( 'Piwik\Intl\Data\Provider\RegionDataProvider' ) -> getCountryList ( ) ; $ return = array ( ) ; $ continents = array ( ) ; foreach ( $ countries as $ countryCode => $ continentCode ) { $ countryCode = strtoupper ( $ countryCode ) ; $ timezones = DateTimeZone :: listIdentifiers ( DateTimeZone :: PER_COUNTRY , $ countryCode ) ; foreach ( $ timezones as $ timezone ) { if ( ! isset ( $ continents [ $ continentCode ] ) ) { $ continents [ $ continentCode ] = Piwik :: translate ( 'Intl_Continent_' . $ continentCode ) ; } $ continent = $ continents [ $ continentCode ] ; $ return [ $ continent ] [ $ timezone ] = $ this -> getTimezoneName ( $ timezone , $ countryCode , count ( $ timezones ) > 1 ) ; } } // Sort by continent name and then by country name. ksort ( $ return ) ; foreach ( $ return as $ continent => $ countries ) { asort ( $ return [ $ continent ] ) ; } $ return [ 'UTC' ] = $ this -> getTimezonesListUTCOffsets ( ) ; return $ return ; }
docstring: Returns the list of timezones supported.
  Used for addSite and updateSite
  
  @return array of timezone strings
docstring_tokens: Returns the list of timezones supported . Used for addSite and updateSite