I have a clock that I am tring to use on my site and it works really well as in it shows the time but there are still two things that I need it to do:
- I need it to display the time in my timezone, the server's timezone.
- I need the clock to keep real time. (i.e., display the seconds as they change)
Code:
<script>
function displayTime() {
document.getElementById( "servertime" ).innerHTML = '<?=date("h:i:s A");?>';
}
var serverTime = window.setInterval( "displayTime()", 1200 );
</script>