为什么在php.ini中设置了date.timezone = PRC 后时区仍然出错
根据网上的说明,将php.ini的date.timezone值设为PRC,但在页面中调用date()函数仍会提示我需要设置时区
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.
php.ini中的设置应该没有问题,拼写什么的也都正确