Javascript code to display clock on section in GMT

<p style=”color:black” id=’ct’></p>

<script type=”text/javascript”>

function displayClock(){
var r=1000;

function displayClockTime() {
var currentDateTime = new Date();
var dateTimeGMT = currentDateTime.toUTCString();// Convert to GMT
document.getElementById(‘ct’).innerHTML = dateTimeGMT;



Paste the above code in a Section rule (Un-check ‘Auto-generate HTML’ and paste in HTML source area)

Leave a Reply

Your email address will not be published. Required fields are marked *