function time_rota()
{
      now = new Date();
      h="0"+now.getHours();
      m="0"+now.getMinutes();
      s="0"+now.getSeconds();
      if(h>9){h=now.getHours()}
      if(m>9){m=now.getMinutes()}
      if(s>9){s=now.getSeconds()}
	  var clock = document.getElementById("local_clock");
	  clock.innerText = now.getYear() + "-" + (now.getMonth() + 1 ) + "-" + now.getDate() + " " + h+":"+m+":"+s;
      setTimeout( 'time_rota()', 1000)
}