0

可能重复:
如何修复 PHP 中 date() 的警告”

我在 chrooted 环境中设置了 PHP(在 android 设备上,但这不应该是问题),并根据需要在使用的 php.ini 中设置了 data.timezone。但是我仍然收到警告消息。

我已经使用 phpinfo() 检查我已经更改了正确的 php.ini 但它仍然给出错误。

这可能是什么原因造成的?我的理解是您在 php.ini 中所做的更改会立即生效,对吗?

如果您需要更多信息,请告诉我!

错误信息:

Warning: date(): it is not sage to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function......
4

0 回答 0