original_string: public function setTimezone($timezone)
      {
          if (is_string($timezone)) {
              $timezone = new DateTimeZone($timezone);
          }
          $this->dbTimezone = $timezone;
  
          return $this;
      }
code: public function setTimezone($timezone)
      {
          if (is_string($timezone)) {
              $timezone = new DateTimeZone($timezone);
          }
          $this->dbTimezone = $timezone;
  
          return $this;
      }
code_tokens: public function setTimezone ( $ timezone ) { if ( is_string ( $ timezone ) ) { $ timezone = new DateTimeZone ( $ timezone ) ; } $ this -> dbTimezone = $ timezone ; return $ this ; }
docstring: Set database timezone.
  
  Specified timezone will be set for DateTime objects before generating
  datetime string for saving to database. If `null` no timezone conversion
  will be done.
  
  @param string|\DateTimeZone|null $timezone Database timezone.
  @return $this
docstring_tokens: Set database timezone .