<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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Converting string to MySQL timestamp format in php(在php中将字符串转换为MySQL时间戳格式)
                  datetime to timestamp(日期时间到时间戳)
                  PHP timestamp date to user timezone(PHP时间戳日期到用户时区)
                  Converting TIMESTAMP to unix time in PHP?(在 PHP 中将 TIMESTAMP 转换为 unix 时间?)
                  Convert ISO 8601 to unixtimestamp(将 ISO 8601 转换为 unixtimestamp)
                  Finding days between 2 unix timestamps in php(在php中查找2个unix时间戳之间的天数)

                • <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'>