title: How to specify timezone in php to output the date('Y') correctly
body: <p>Little problem with my php code, please see below</p>
  
  <pre><code>&lt;?php
  $thisyear = date('Y');
  echo "&lt;span&gt;&amp;copy; 2004-$thisyear All rights reserved. &lt;/span&gt;";
  ?&gt;
  </code></pre>
  
  <p>The error I am getting in the error_log is of the following nature</p>
  
  <blockquote>
    <p>PHP Warning:  date() [function.date]: It
    is not safe to rely on the system's timezone settings. You are
    <em>required</em> 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/Chicago' for
    'CST/-6.0/no DST'</p>
  </blockquote>
  
  <p>I have no idea how to specify either of this in my simple php script.</p>
  
  <p>Any help is appreciated! </p>