解决php页面的时间问题
昨天更新了php.ini文件后(为了增加wordpress上传上限)
刚才发现进入麦酒之誓的主页出现了一串“It is not safe to rely on the system’s timezone settings……”的字样
搜索了一下,在php.ini文件里加入以下内容,解决。
参考来源:https://serverlog.jp/php-date-timezone/
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = “Asia/Tokyo”
评论共 0 条
不想用 GitHub 账号?也可以发邮件给我。