yii\base\Application::getTimeZone PHP Method

getTimeZone() public method

This is a simple wrapper of PHP function date_default_timezone_get(). If time zone is not configured in php.ini or application config, it will be set to UTC by default.
See also: http://php.net/manual/en/function.date-default-timezone-get.php
public getTimeZone ( ) : string
return string the time zone used by this application.
    public function getTimeZone()
    {
        return date_default_timezone_get();
    }