Convert seconds to date
<p>According to <a href="http://www.ruddwire.com/handy-code/date-to-millisecond-calculators/" rel="nofollow">this calculator</a> this date should be Mon Apr 01 2013 13:11:57 GMT+0200. But instead it's the servers time: 2013-04-01 07:11:57. I get that this is a timezone problem (the server is in -4) but is there a way to make this timezone independent or do I have to query the user's timezone from the database?</p>

<pre><code>$date = 1364814717;
$date = date('Y-m-d H:i:s', $date);
</code></pre>
