メモ。
<?php App::uses('Mysql', 'Model/Datasource/Database'); class MysqlCustom extends Mysql{ public function connect() { $r = parent::connect(); if ( $r ) { if ( isset($this->config['time_zone']) ) { $qry = sprintf( "SET @@time_zone = '%s'", $this->config['time_zone'] ); $this->query( $qry ); //CakeLog::debug($qry); } } return $r; } } ?>
コメントを残す