zoukankan      html  css  js  c++  java
  • Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use ...报错

    错误截图

    Warning: 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:phpStudyWWWyiicommonconfigootstrap.php on line 32
    
    Warning: 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:phpStudyWWWyiicommonconfigootstrap.php on line 33
    

      

    具体解决方法:

    修改php.ini配置文件

    在php.ini配置文件中找到:  ;date.timezone = ,把前面的分号去掉在 “=”后面加上时区。

    date.timezone = "Asia/Shanghai"

    或者

    date.timezone="Asia/Chongqing"

    修改完后,重启apache即可。

  • 相关阅读:
    20170602
    使用布局规划页面
    商品的删除
    修改页面的 修改图片
    商品修改
    引入行高亮显示
    添加一个时间插件: 1.把插件放到 public目录 下 datetimepicker
    排序,搜索 代码
    搜索
    翻页代码,商品列表页;
  • 原文地址:https://www.cnblogs.com/zhangyouwu/p/10129865.html
Copyright © 2011-2022 走看看