original_string: public function initialize() {
          $this->setDialect(new MysqlDialect($this));
  
          $flags = $this->getConfig('flags');
  
          if ($timezone = $this->getConfig('timezone')) {
              if ($timezone === 'UTC') {
                  $timezone = '+00:00';
              }
  
              $flags[PDO::MYSQL_ATTR_INIT_COMMAND] = sprintf('SET time_zone = "%s";', $timezone);
          }
  
          $this->setConfig('flags', $flags);
      }
code: public function initialize() {
          $this->setDialect(new MysqlDialect($this));
  
          $flags = $this->getConfig('flags');
  
          if ($timezone = $this->getConfig('timezone')) {
              if ($timezone === 'UTC') {
                  $timezone = '+00:00';
              }
  
              $flags[PDO::MYSQL_ATTR_INIT_COMMAND] = sprintf('SET time_zone = "%s";', $timezone);
          }
  
          $this->setConfig('flags', $flags);
      }
code_tokens: public function initialize ( ) { $ this -> setDialect ( new MysqlDialect ( $ this ) ) ; $ flags = $ this -> getConfig ( 'flags' ) ; if ( $ timezone = $ this -> getConfig ( 'timezone' ) ) { if ( $ timezone === 'UTC' ) { $ timezone = '+00:00' ; } $ flags [ PDO :: MYSQL_ATTR_INIT_COMMAND ] = sprintf ( 'SET time_zone = "%s";' , $ timezone ) ; } $ this -> setConfig ( 'flags' , $ flags ) ; }
docstring: Set the dialect and timezone being used.
docstring_tokens: Set the dialect and timezone being used .