title: PHP timestamp date to user timezone
body: <p>I'm pulling the raw generated mysql timestamp info of $item_date from the database as php date format:</p>
  
  <pre><code>if (($timestamp = strtotime($item_date)) === false) {
      echo "The timestamp string is bogus";
  } else {
      echo date('j M Y h:i:sA', $timestamp);
  }
  </code></pre>
  
  <p>Output folowwing the server zone (UTC): </p>
  
  <blockquote>
    <p>12 Nov 2012 05:54:11PM</p>
  </blockquote>
  
  <p>but i want it to convert according to the user time zone</p>
  
  <p>Example: let's say if the user's time is <strong>13 Nov 2012 07:00:00 AM(+0800 GMT)</strong> and the server time is <strong>12 Nov 2012 11:00:00 PM(UTC)</strong> and the timestamp of $item_date is <strong>12 Nov 2012 10:30:00 PM (UTC)</strong> so</p>
  
  <p>User with <strong>(UTC)</strong> will see $item_date as:</p>
  
  <blockquote>
    <p>12 Nov 2012 10:30:00 PM</p>
  </blockquote>
  
  <p>and user with (+0800 GMT) will see $item_date as:</p>
  
  <blockquote>
    <p>13 Nov 2012 06:30:00 PM</p>
  </blockquote>
  
  <p>How do i get it done?
  Thanks</p>