我安裝WDCP面板后,自行將PHP版本升級(jí)到了PHP5.6,然后通過phpinfo輸出(),發(fā)現(xiàn)提示:
phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
于是,通過后臺(tái)面板,更改了php.ini中的設(shè)置為:
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Asia/Shanghai