title: Codeigniter Default Timezone Issue
body: <p>Brief: Am working on a CodeIgniter3.0.3 version application. It is a multi-tenant application. Single code base connects to multiple databases based on the user login (interacts with different database). Each user could be from different timezone across the globe. I am trying to apply the below code. </p>
  
  <pre><code>date_default_timezone_set("Africa/Accra");
  $time =  Date('Y-m-d h:i:s');echo $time;
  $expiry=$this-&gt;db-&gt;get_where('settings', array('type' =&gt; 'registration_date'))-&gt;row()-&gt;description;
  $timestamp=strtotime($expiry);
  echo Date('Y-m-d h:i:s',$timestamp);
  </code></pre>
  
  <p>The second line of this code shows the time properly accordingly, whereas the last line is showing the server time.</p>
  
  <p>The description column of the setting table is of varchar type which stored value like "2016-02-08 16:29:09".</p>
  
  <p>Also, if I add date_default_timezone_set("Africa/Accra") just before the last line, its working fine.</p>
  
  <p><strong>Question</strong> : I have tried setting this property in index.php, config.php, controller construct method, created helper library, but none of them seems to have worked. How can I resolve it please?</p>
  
  <p><strong>Edit</strong> : The date value stored in the DB was before applying this timezone_set. There was no offset in the DB before. </p>
  
  <p>As of now I don't know the timezone for each of the users. I can set it to GMT and update all the columns accordingly too.
  Do I need to update all the existing date columns based on the timezone set?  But, What will happen if any user changes their timezone prefer? Is there any other workaround to this?</p>