title: how do i set the time in php?
body: <pre><code>&lt;?php
  
  date_default_timezone_set("Spain/Madrid");
  
  $date=date("H:i:s");
  
  echo $date;
  ?&gt;
  </code></pre>
  
  <p>how can i set the date to my location?</p>
  
  <p>i get this when i run the script Notice: date_default_timezone_set() [function.date-default-timezone-set]: Timezone ID 'Espana/Madrid' is invalid </p>
  
  <p>i know Spain/Madrid is not recognized, but how can i fix it?</p>