public function init()
    {
        $this->actionRoute = Url::toRoute($this->actionRoute);
        $this->name = Yii::$app->session->get('timezone');
        if ($this->name == null) {
            $this->registerTimezoneScript($this->actionRoute);
            $this->name = date_default_timezone_get();
        }
        Yii::$app->setTimeZone($this->name);
    }
public function init()
    {
        $this->actionRoute = Url::toRoute($this->actionRoute);
        $this->name = Yii::$app->session->get('timezone');
        if ($this->name == null) {
            $this->registerTimezoneScript($this->actionRoute);
            $this->name = date_default_timezone_get();
        }
        Yii::$app->setTimeZone($this->name);
    }
public function init ( ) { $ this -> actionRoute = Url :: toRoute ( $ this -> actionRoute ) ; $ this -> name = Yii :: $ app -> session -> get ( 'timezone' ) ; if ( $ this -> name == null ) { $ this -> registerTimezoneScript ( $ this -> actionRoute ) ; $ this -> name = date_default_timezone_get ( ) ; } Yii :: $ app -> setTimeZone ( $ this -> name ) ; }
Registering offset-getter if timezone is not set
Registering offset - getter if timezone is not set