concrete/src/Entity/Site/Site.php
public function getTimezone()
    {
        $timezone = null;
        $config = $this->getConfigRepository();
        if ($config) {
            $timezone = $config->get('timezone');
        }
        if (!$timezone) {
            $timezone = date_default_timezone_get();
        }

        return $timezone;
    }
public function getTimezone()
    {
        $timezone = null;
        $config = $this->getConfigRepository();
        if ($config) {
            $timezone = $config->get('timezone');
        }
        if (!$timezone) {
            $timezone = date_default_timezone_get();
        }

        return $timezone;
    }
public function getTimezone ( ) { $ timezone = null ; $ config = $ this -> getConfigRepository ( ) ; if ( $ config ) { $ timezone = $ config -> get ( 'timezone' ) ; } if ( ! $ timezone ) { $ timezone = date_default_timezone_get ( ) ; } return $ timezone ; }
Get the site time zone identifier.

@return string
Get the site time zone identifier .