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);
    }
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);
    }
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 ) ; }
Set the dialect and timezone being used.
Set the dialect and timezone being used .