<tfoot id='UnxAp'></tfoot>

    <i id='UnxAp'><tr id='UnxAp'><dt id='UnxAp'><q id='UnxAp'><span id='UnxAp'><b id='UnxAp'><form id='UnxAp'><ins id='UnxAp'></ins><ul id='UnxAp'></ul><sub id='UnxAp'></sub></form><legend id='UnxAp'></legend><bdo id='UnxAp'><pre id='UnxAp'><center id='UnxAp'></center></pre></bdo></b><th id='UnxAp'></th></span></q></dt></tr></i><div id='UnxAp'><tfoot id='UnxAp'></tfoot><dl id='UnxAp'><fieldset id='UnxAp'></fieldset></dl></div>
    <legend id='UnxAp'><style id='UnxAp'><dir id='UnxAp'><q id='UnxAp'></q></dir></style></legend>
      <bdo id='UnxAp'></bdo><ul id='UnxAp'></ul>

      <small id='UnxAp'></small><noframes id='UnxAp'>

      1. “date():依赖系统的时区设置是不安全的……"

        quot;date(): It is not safe to rely on the system#39;s timezone settings...quot;(“date():依赖系统的时区设置是不安全的……)
            <tbody id='82XUw'></tbody>
              <bdo id='82XUw'></bdo><ul id='82XUw'></ul>
            • <tfoot id='82XUw'></tfoot><legend id='82XUw'><style id='82XUw'><dir id='82XUw'><q id='82XUw'></q></dir></style></legend>
                  <i id='82XUw'><tr id='82XUw'><dt id='82XUw'><q id='82XUw'><span id='82XUw'><b id='82XUw'><form id='82XUw'><ins id='82XUw'></ins><ul id='82XUw'></ul><sub id='82XUw'></sub></form><legend id='82XUw'></legend><bdo id='82XUw'><pre id='82XUw'><center id='82XUw'></center></pre></bdo></b><th id='82XUw'></th></span></q></dt></tr></i><div id='82XUw'><tfoot id='82XUw'></tfoot><dl id='82XUw'><fieldset id='82XUw'></fieldset></dl></div>

                • <small id='82XUw'></small><noframes id='82XUw'>

                  本文介绍了“date():依赖系统的时区设置是不安全的……"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在请求将 PHP 版本从 5.2.17 更新到 PHP 5.3.21 时收到此错误服务器.

                  I got this error when I requested to update the PHP version from 5.2.17 to PHP 5.3.21 on the server.

                  <div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
                  
                  <h4>A PHP Error was encountered</h4>
                  
                  <p>Severity: Warning</p>
                  <p>Message:  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 'America/New_York' for 'EDT/-4.0/DST' instead</p>
                  <p>Filename: libraries/Log.php</p>
                  <p>Line Number: 86</p>
                  
                  </div>
                  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 'America/New_York' for 'EDT/-4.0/DST' instead in /filelocation right here/system/libraries/Log.php on line 86
                  
                  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 'America/New_York' for 'EDT/-4.0/DST' instead in /filelocation right here/system/libraries/Log.php on line 99
                  <div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
                  
                  <h4>A PHP Error was encountered</h4>
                  
                  <p>Severity: Warning</p>
                  <p>Message:  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 'America/New_York' for 'EDT/-4.0/DST' instead</p>
                  <p>Filename: libraries/Log.php</p>
                  <p>Line Number: 99</p>
                  
                  </div>
                  

                  推荐答案

                  您可能需要将时区放在 php.ini 文件的配置行中.你的 php.ini 文件中应该有这样的块:

                  You probably need to put the timezone in a configuration line in your php.ini file. You should have a block like this in your php.ini file:

                  [Date]
                  ; Defines the default timezone used by the date functions
                  ; http://php.net/date.timezone
                  date.timezone = America/New_York
                  

                  如果没有,请添加它(将时区替换为您的时区).配置好后一定要重启httpd(service httpd restart).

                  If not, add it (replacing the timezone by yours). After configuring, make sure to restart httpd (service httpd restart).

                  这里是支持的时区列表.

                  这篇关于“date():依赖系统的时区设置是不安全的……"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  • <bdo id='9HrYd'></bdo><ul id='9HrYd'></ul>
                          <tbody id='9HrYd'></tbody>

                          • <legend id='9HrYd'><style id='9HrYd'><dir id='9HrYd'><q id='9HrYd'></q></dir></style></legend>
                            <tfoot id='9HrYd'></tfoot>
                          • <i id='9HrYd'><tr id='9HrYd'><dt id='9HrYd'><q id='9HrYd'><span id='9HrYd'><b id='9HrYd'><form id='9HrYd'><ins id='9HrYd'></ins><ul id='9HrYd'></ul><sub id='9HrYd'></sub></form><legend id='9HrYd'></legend><bdo id='9HrYd'><pre id='9HrYd'><center id='9HrYd'></center></pre></bdo></b><th id='9HrYd'></th></span></q></dt></tr></i><div id='9HrYd'><tfoot id='9HrYd'></tfoot><dl id='9HrYd'><fieldset id='9HrYd'></fieldset></dl></div>

                            <small id='9HrYd'></small><noframes id='9HrYd'>