在PHP輸出時間代碼調試過程中出現 「It is not safe to rely on the system’s timezone settings」

在PHP輸出時間代碼調試過程中出現 「It is not safe to rely on the system’s timezone settings」 解決方法可試試: 1、在php.ini裏找到date.timezone項,設置date.timezone = "Asia/Shanghai",重啓環境就ok了 2、在頁面添加date_default_timezone_set("PRC")
相關文章
相關標籤/搜索