title: How to setup timezone xampp mysql and apache?
body: <p>I am using XAMPP - PHP and MYSQL servers. When I tried to use following -
      
  
  <pre><code>getRates(date('Y-m-d'));
  
  
  
  function getRates($cDate)
  {
  $query = "SELECT * FROM randa WHERE date like '$cDate'" //it only worked at times.  
  }
  
  ?&gt;
  </code></pre>
  
  <p>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. </p>
  
  <p>How can I fix this ?
  Thank you </p>