freebsd下设定时间

cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
adjkerntz -a
date yyyymmddhhmm

vi /usr/local/etc/php.ini

add:

date.timezone = "Asia/Shanghai"

:wq