public function setTimezone($timezone)
    {
        try {
            $test = new \DateTimeZone($timezone);
            $this->timezone = $timezone;
        } catch (\Exception $e) {
            throw new MonetivoException('Invalid timezone');
        }
    }
public function setTimezone($timezone)
    {
        try {
            $test = new \DateTimeZone($timezone);
            $this->timezone = $timezone;
        } catch (\Exception $e) {
            throw new MonetivoException('Invalid timezone');
        }
    }
public function setTimezone ( $ timezone ) { try { $ test = new \ DateTimeZone ( $ timezone ) ; $ this -> timezone = $ timezone ; } catch ( \ Exception $ e ) { throw new MonetivoException ( 'Invalid timezone' ) ; } }
Sets desired timezone
@param string $timezone
@throws MonetivoException
Sets desired timezone