PHP: Changing UTC time to Pacific (PST/PDT)
<p>I have a Datetime object and get the time with the following:</p>

<pre><code>$today = date('Y-m-d H:i:s', $temp['date']-&gt;getTimeStamp());
</code></pre>

<p>I would like to be able to convert this into California's current time, but I need to account for PST and PDT for the time offset. It could be -7 or -8 hours depending on the time of the year. How can I dynamically obtain <code>$today</code> for the correct Pacific time?</p>
