src/Common/Address.php
public function setTimeZone($timezone)
    {
        if(!$timezone) {
            return $this;
        }
        try {
            Carbon::now($timezone);
        } catch (\Exception $e) {
            $this->invalidArguments('10004', sprintf('Invalid timezone set "%s"', $timezone));
        }
        return $this->setParameter('timezone', $timezone);
    }
public function setTimeZone($timezone)
    {
        if(!$timezone) {
            return $this;
        }
        try {
            Carbon::now($timezone);
        } catch (\Exception $e) {
            $this->invalidArguments('10004', sprintf('Invalid timezone set "%s"', $timezone));
        }
        return $this->setParameter('timezone', $timezone);
    }
public function setTimeZone ( $ timezone ) { if ( ! $ timezone ) { return $ this ; } try { Carbon :: now ( $ timezone ) ; } catch ( \ Exception $ e ) { $ this -> invalidArguments ( '10004' , sprintf ( 'Invalid timezone set "%s"' , $ timezone ) ) ; } return $ this -> setParameter ( 'timezone' , $ timezone ) ; }
Set the address time zone
@param string|null $timezone
@return $this
Set the address time zone