Horde_Mapi_Timezone::_checkTimezone PHP Method

_checkTimezone() protected method

Check if the given timezone matches the offsets and also evaluate the daylight saving time transitions for this timezone if necessary.
protected _checkTimezone ( DateTimeZone $timezone, array $offsets ) : array | boolean
$timezone DateTimeZone The timezone to check.
$offsets array The offsets to check.
return array | boolean An array of transition data or false if timezone does not match offset.
    protected function _checkTimezone(DateTimeZone $timezone, array $offsets)
    {
        list($std, $dst) = $this->_getTransitions($timezone, $this->_startDate);
        if ($this->_checkTransition($std, $dst, $offsets)) {
            return $std;
        }
        return false;
    }