code: 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);
      }
docs: Registering offset-getter if timezone is not set