WenRou's Blog
解决php的It is not safe to rely on the system’s timezone settings的问题
2013-9-27 温柔哥

经查和试验解决方案为:

在php.ini中设置时区:

date.timezone = "Asia/Shanghai"

或者在网页开头中加入:

<?php

date_default_timezone_set("PRC");

?>


发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容