PHP - It is not safe to rely on the system's timezone settings

前端 未结 1 1258
-上瘾入骨i
-上瘾入骨i 2021-01-19 14:44

I have just activated/installed PHP and mySQL on my Mac and all seemed to be going well until I accessed a table which used dates.

On the live server - where I was p

相关标签:
1条回答
  • 2021-01-19 15:08

    Any ideas how to stop this.

    The error message tells you how to stop this.

    You are required to use the date.timezone setting or the date_default_timezone_set() function.

    Update your PHP installation's php.ini (likely /etc/php.ini) file to have a date.timezone setting, or use date_default_timezone_set() in your scripts.

    You're only now seeing this because it starts happening in PHP 5.3+.

    0 讨论(0)
提交回复
热议问题