title: Mysql Current Timestamp and time() showing different values
body: <p>OK. So I have been trying to implement a timer. Now a very weird thing is happening and I can't understand why ?.</p>
  
  <p>Basically I am trying to find the difference between the last access and the current time. I am storing the time of last access in the database. This value is according to the server time. But when I try the time() function of php it shows me values which are 5-6 hours behind the time that I have in the database.</p>
  
  <p>For example: here is my code :</p>
  
  <pre><code>    $t1= strtotime($played_row-&gt;timer); // Time from the database with CURRENT_TIMESTAMP
  
      $t2= strtotime("now"); // Get the current time
  </code></pre>
  
  <p>It shows Year: 2012 Month: 01 Day: 21 - 05:28 pm for t2 </p>
  
  <p>and Year: 2012 Month: 01 Day: 21 - 10:28 pm for my timestamp values.</p>
  
  <p>Can anyone tell my why is that ?</p>
  
  <p>P.S:  I am running the code on my computer itself.</p>