<small id='2QB0F'></small><noframes id='2QB0F'>

      • <bdo id='2QB0F'></bdo><ul id='2QB0F'></ul>
      <legend id='2QB0F'><style id='2QB0F'><dir id='2QB0F'><q id='2QB0F'></q></dir></style></legend><tfoot id='2QB0F'></tfoot>

      1. <i id='2QB0F'><tr id='2QB0F'><dt id='2QB0F'><q id='2QB0F'><span id='2QB0F'><b id='2QB0F'><form id='2QB0F'><ins id='2QB0F'></ins><ul id='2QB0F'></ul><sub id='2QB0F'></sub></form><legend id='2QB0F'></legend><bdo id='2QB0F'><pre id='2QB0F'><center id='2QB0F'></center></pre></bdo></b><th id='2QB0F'></th></span></q></dt></tr></i><div id='2QB0F'><tfoot id='2QB0F'></tfoot><dl id='2QB0F'><fieldset id='2QB0F'></fieldset></dl></div>

        如何设置时区 xampp mysql 和 apache?

        How to setup timezone xampp mysql and apache?(如何设置时区 xampp mysql 和 apache?)
        1. <tfoot id='PrlYw'></tfoot>

          <legend id='PrlYw'><style id='PrlYw'><dir id='PrlYw'><q id='PrlYw'></q></dir></style></legend>

              <bdo id='PrlYw'></bdo><ul id='PrlYw'></ul>

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

                <tbody id='PrlYw'></tbody>

                <i id='PrlYw'><tr id='PrlYw'><dt id='PrlYw'><q id='PrlYw'><span id='PrlYw'><b id='PrlYw'><form id='PrlYw'><ins id='PrlYw'></ins><ul id='PrlYw'></ul><sub id='PrlYw'></sub></form><legend id='PrlYw'></legend><bdo id='PrlYw'><pre id='PrlYw'><center id='PrlYw'></center></pre></bdo></b><th id='PrlYw'></th></span></q></dt></tr></i><div id='PrlYw'><tfoot id='PrlYw'></tfoot><dl id='PrlYw'><fieldset id='PrlYw'></fieldset></dl></div>
                  本文介绍了如何设置时区 xampp mysql 和 apache?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 XAMPP - PHP 和 MYSQL 服务器.当我尝试使用以下 -

                  I am using XAMPP - PHP and MYSQL servers. When I tried to use following -

                  getRates(date('Y-m-d'));
                  
                  
                  
                  function getRates($cDate)
                  {
                  $query = "SELECT * FROM randa WHERE date like '$cDate'" //it only worked at times.  
                  }
                  
                  ?>
                  

                  然后我意识到 date('Y-m-d') 没有返回正确的日期.转到 php.ini 并更改时区.并且仍然返回错误的日期.

                  Then I realized the date('Y-m-d') does not return the correct date. Went to php.ini and changed time zone. And is still returning the wrong date.

                  我该如何解决这个问题?谢谢你

                  How can I fix this ? Thank you

                  推荐答案

                  试试这个

                  1) 在 httpd.conf (xamppapacheconfhttpd.conf) 中,添加以下行:

                  1) In httpd.conf (xamppapacheconfhttpd.conf) , add the following line:

                  SetEnv TZ Europe/Moscow
                  

                  2) 在 [Date] 部分编辑 php.ini (xamppphpphp.ini) date.timezone 值:

                  2) Edit php.ini (xamppphpphp.ini) date.timezone value in [Date] section:

                  date.timezone = "Europe/Moscow"
                  

                  3) 在 my.ini (xamppmysqlinmy.ini) 中添加或替换

                  3) In my.ini (xamppmysqlinmy.ini) add or replace

                  default-time-zone = "Europe/Moscow"
                  

                  重启 Apache 和 MySQL

                  Restart Apache and MySQL

                  这篇关于如何设置时区 xampp mysql 和 apache?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 的问题)

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

                  <legend id='pf0LT'><style id='pf0LT'><dir id='pf0LT'><q id='pf0LT'></q></dir></style></legend>

                    <bdo id='pf0LT'></bdo><ul id='pf0LT'></ul>
                      <tfoot id='pf0LT'></tfoot>

                        <tbody id='pf0LT'></tbody>

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