How to convert server time to local time?
<p>My php file is hosted in some other part of the world. The <code>date()</code> and <code>time()</code> functions returns the date/time on the server. How do I convert that date so that it's the same as my local date/time?</p>

<p>The date on the server is 10 hours behind my local time. I could just hard code and substract this from the server time. But what is the <em>proper</em> way of going about this so that no value has to be hardcoded?</p>
