CakePHPのタイムゾーンをローカル設定にする方法

PHP5.3対応とかで、初期設定のタイムゾーンが勝手にUTCになっている。これを解決するには、
app/config/core.phpの以下の部分をコメントアウトすれば、php.iniの設定が読み込まれる。特に、php.iniでタイムゾーンを設定していなければ、ローカルのタイムゾーン設定が反映される。

/**
 * If you are on PHP 5.3 uncomment this line and correct your server timezone
 * to fix the date & time related errors.
 */
//	date_default_timezone_set('UTC');
2010年 3月 29日 | Posted in PHP, PostgreSQL
タグ:
まだコメントはありません。

コメントする

XHTML: 使用可能タグ: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>