Using a Time Zone Conversion When Dynamically Generating Results
<p>If I understand correctly, the code below converts <code>$row["datesubmitted"]</code> from one timezone to another.  </p>

<p>I would like to print the converted <code>$row["datesubmitted"]</code> dynamically in an HTML table.  Is there a way that I can apply the conversion below for each row that is pulled from MySQL?  I assume that I can't just plug $row["dt"] into the code since there is no field called "dt" in the MySQL that I am using.</p>

<p>Thanks in advance,</p>

<p>John</p>

<pre><code>$dt = new DateTime($row["datesubmitted"], $tzFrom); 
$dt-&gt;setTimezone($tzTo); 
</code></pre>
