熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> PHP編程 >> 正文

PHP Warning 報“timezone”錯

2022-06-13   來源: PHP編程 

  PHP Warning:  date(): It is not safe to rely on the systems timezone settings You are *required* to use the datetimezone 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//no DST instead in /var/www/html/include/global_constantsphp on line

  解決辦法在phpini裡加上

  
datetimezone = "Asia/Chongqing"


From:http://tw.wingwit.com/Article/program/PHP/201311/21154.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.