strftime()的問題,新搭建的環境

剛剛搭建好的lamp結果運行程序的時候出現了下面的問題


解決的方法是:在php.ini中加上 date.timezone = "Asia/Shanghai",問題就解決了


strftime(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone.












發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章