title: How to set date.timezone for CodeIgniter to work with php 5.3
body: <p>When date.timezone in php.ini is commented out, it gives me:</p>
  
  <blockquote>
    <p>A PHP Error was encountered</p>
    
    <p>Severity: Warning</p>
    
    <p>Message: main(): 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/Los_Angeles' for '-8.0/no
    DST' instead</p>
    
    <p>Filename: controllers/helloworld.php</p>
    
    <p>Line Number: 2</p>
  </blockquote>
  
  <p>When I have</p>
  
  <pre><code>date.timezone = "America/Los_Angeles"
  </code></pre>
  
  <p>It gives me this:</p>
  
  <blockquote>
    <p>Server error The website encountered
    an error while retrieving
    <a href="http://localhost/ci/index.php/helloworld" rel="nofollow noreferrer">http://localhost/ci/index.php/helloworld</a>.
    It may be down for maintenance or
    configured incorrectly. Here are some
    suggestions: Reload this web page
    later. HTTP Error 500 (Internal Server
    Error): An unexpected condition was
    encountered while the server was
    attempting to fulfill the request.</p>
  </blockquote>
  
  <p>I am using php 5.3, CodeIgniter 2.0.0, and Apache 2.2.</p>
  
  <p>Update 1:
  I tried loading a test.php without CodeIgniter, where the first 3 lines of test.php is</p>
  
  <pre><code>date_default_timezone_set('America/Los_Angeles');
  echo date("l j \of F Y h:i:s A");
  </code></pre>
  
  <p>And it works fine, different timezones also works fine too.
  So I suspect the problem is from CodeIgniter.</p>