這篇文章主要講解了“如何解決php的It is not safe to rely on the system’s timezone settings的問題”,文中的講解內(nèi)容簡單清晰,易于學習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學習“如何解決php的It is not safe to rely on the system’s timezone settings的問題”吧!
10年積累的網(wǎng)站設計、網(wǎng)站建設經(jīng)驗,可以快速應對客戶對網(wǎng)站的新想法和需求。提供各種問題對應的解決方案。讓選擇我們的客戶得到更好、更有力的網(wǎng)絡服務。我雖然不認識你,你也不認識我。但先建設網(wǎng)站后付款的網(wǎng)站建設流程,更有郁南免費網(wǎng)站建設讓你可以放心的選擇與我們合作。
訪問網(wǎng)站提示:
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. We selected ‘Asia/Chongqing’ for ‘CST/8.0/no DST’ instead
解決:
修改php.ini
添加:date.timezone = "Asia/Shanghai"
感謝各位的閱讀,以上就是“如何解決php的It is not safe to rely on the system’s timezone settings的問題”的內(nèi)容了,經(jīng)過本文的學習后,相信大家對如何解決php的It is not safe to rely on the system’s timezone settings的問題這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識點的文章,歡迎關(guān)注!