src/Common/Service/DateTime.php
public function getAllTimezoneFlat()
    {
        $aTimezones = $this->getAllTimezone();
        $aOut       = [];

        foreach ($aTimezones as $sKey => $mValue) {
            if (is_array($mValue)) {
                foreach ($mValue as $subKey => $subValue) {
                    if (is_string($subValue)) {
                        $aOut[$subKey] = $sKey . ' - ' . $subValue;
                    }
                }
            } else {
                $aOut[$sKey] = $mValue;
            }
        }

        return $aOut;
    }
public function getAllTimezoneFlat()
    {
        $aTimezones = $this->getAllTimezone();
        $aOut       = [];

        foreach ($aTimezones as $sKey => $mValue) {
            if (is_array($mValue)) {
                foreach ($mValue as $subKey => $subValue) {
                    if (is_string($subValue)) {
                        $aOut[$subKey] = $sKey . ' - ' . $subValue;
                    }
                }
            } else {
                $aOut[$sKey] = $mValue;
            }
        }

        return $aOut;
    }
public function getAllTimezoneFlat ( ) { $ aTimezones = $ this -> getAllTimezone ( ) ; $ aOut = [ ] ; foreach ( $ aTimezones as $ sKey => $ mValue ) { if ( is_array ( $ mValue ) ) { foreach ( $ mValue as $ subKey => $ subValue ) { if ( is_string ( $ subValue ) ) { $ aOut [ $ subKey ] = $ sKey . ' - ' . $ subValue ; } } } else { $ aOut [ $ sKey ] = $ mValue ; } } return $ aOut ; }
Returns all the supported timezones as a flat array

@return array
Returns all the supported timezones as a flat array