src/Common/Service/DateTime.php
public static function getTimezoneFromCode($sCode)
    {
        $aAbbreviations = \DateTimeZone::listAbbreviations();
        foreach ($aAbbreviations as $sTzCode => $aValues) {
            if (strtolower($sCode) == $sTzCode) {
                $aTimeZone = reset($aValues);
                return getFromArray('timezone_id', $aTimeZone, false);
            }
        }

        return false;
    }
public static function getTimezoneFromCode($sCode)
    {
        $aAbbreviations = \DateTimeZone::listAbbreviations();
        foreach ($aAbbreviations as $sTzCode => $aValues) {
            if (strtolower($sCode) == $sTzCode) {
                $aTimeZone = reset($aValues);
                return getFromArray('timezone_id', $aTimeZone, false);
            }
        }

        return false;
    }
public static function getTimezoneFromCode ( $ sCode ) { $ aAbbreviations = \ DateTimeZone :: listAbbreviations ( ) ; foreach ( $ aAbbreviations as $ sTzCode => $ aValues ) { if ( strtolower ( $ sCode ) == $ sTzCode ) { $ aTimeZone = reset ( $ aValues ) ; return getFromArray ( 'timezone_id' , $ aTimeZone , false ) ; } } return false ; }
Get the timezone string from the timezone code

@param string $sCode The timezone code, e.g. GMT

@return string|false
Get the timezone string from the timezone code