Categories: Linux筆記

解決 strtotime(): It is not safe to rely on the system’s timezone settings. PHP5.3時區問題

剛把PHP升級到5.3後立刻就發現了phpmyadmin 報的時區錯誤。
Warning: strtotime(): It is not safe to rely on the system’s timezone settings.
原來是php.ini沒有設定時區. 改一下即可

設定php.ini
#vi /etc/php.ini
找到
;date.timezone =
改成
date.timezone = “Asia/Taipei”
service httpd restart

收工.

yan

Share
Published by
yan
Tags: PHP