PHP World times with BST update
<p>I am trying to show a few world times on my site. I am looking for the most precise way of updating times / keeping them accurate whilst incorporating the BST 1 hour leap.</p>

<p>so far I have</p>

<pre><code>&lt;?php
date_default_timezone_set('Europe/London');
$uk_time = date("g:i A");
$month = date("n");

if ($month &lt; 3 || $month &gt; 10)  //January, February, November and December are not BST months.
{
$us_time = date("g:i A", strtotime('-4 hours'));
$dub_time = date("g:i A", strtotime('+4 hours'));
$kong_time = date("g:i A", strtotime('+8 hours'));
}
elseif ($month &gt; 3 || $month &lt; 10)  //April to September are BST months.
{
$us_time = date("g:i A", strtotime('-5 hours'));
$dub_time = date("g:i A", strtotime('+3 hours'));
$kong_time = date("g:i A", strtotime('+7 hours'));
}
?&gt;
&lt;div class="time-left"&gt;
&lt;ul&gt;
  &lt;li class="clock"&gt;&lt;strong&gt;New York:&lt;/strong&gt; &lt;?php echo "$us_time" ?&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;London:&lt;/strong&gt; &lt;?php echo "$uk_time" ?&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Dubai:&lt;/strong&gt; &lt;?php echo "$dub_time" ?&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Hong Kong:&lt;/strong&gt; &lt;?php echo "$kong_time" ?&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</code></pre>

<p>I am wondering if there is a better way</p>

<p>cheers</p>

<p>Jeff</p>
