I have a weather website and I'm driving me crazy to figure out how I can have two clocks on my page and they will be updating in real time. One with the 'Europe/Lisbon' timezone and the and the other with the 'UTC' timezone
Now I have this code lines:
<strong>Elvas:</strong>
<?php
// set the default timezone to use. Available since PHP 5.1
date_default_timezone_set('Europe/Lisbon');
// Prints something like: Monday 8th of August 2005 03:12:46 PM
echo date('H:i');
?>
   
<strong>UTC:</strong>
<?php
// set the default timezone to use. Available since PHP 5.1
date_default_timezone_set('UTC');
// Prints something like: Monday 8th of August 2005 03:12:46 PM
echo date('H:i');
?>
But of course with no automatic updates as I would like.
Thanks in advance for any posible help you could give to me.