title: Display GMT + 1 time on website JS
body: <p>I am trying to get the time GMT + 1 to show on my website. </p>
  
  <p>I found and bodged some code that was working fine but now it seems to be not working.</p>
  
  <p>Any ideas why or do you know a better way?</p>
  
  <p>Thanks</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function display_c(){
  var refresh=1000; // Refresh rate in milli seconds
  mytime=setTimeout('display_ct()',refresh)
  }
  tday=new Array("Sun","Mon","Tues","Wed","Thurs","Fri","Sat");
  tmonth=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
  function display_ct() {
  var strcount
  var d1= new Date();
  var x = new Date()
  x.setHours(x.getHours() + 1);
  
  var nday2=x.getDay();
  var nmonth2=x.getMonth();
  var ndate2=x.getDate();
  var nyear2=x.getFullYear();
  var nsec2=x.getSeconds();
  var nhour2=x.getHours();
  
  var nmin=d1.getMinutes();
  if(nmin&lt;=9)
  nmin="0"+nmin;
  
  var x1=x.toUTCString();// changing the display to UTC string
  document.getElementById('ct').innerHTML = ""+tday[nday2]+", "+ndate2+" "+tmonth[nmonth2]+", "+nyear2+" | "+nhour2+":"+nmin+":"+nsec2+" GMT +1";
  tt=display_c();
  }
  &lt;/script&gt;
  
  
  
  &lt;span id="ct"&gt;&lt;/span&gt;
  </code></pre>