var d = new Date();
var now = new Date();
now.setHours(d.getUTCHours()+1);
now.setMinutes(d.getUTCMinutes());

var years = now.getFullYear();
var months = now.getMonth()+1;
months = (months < 10)? '0'+months : months;
var days = now.getDay();
days = (days < 10)? '0'+days : days;
var hours = now.getHours();
var minutes = now.getMinutes();
minutes = (minutes < 10)? '0'+minutes : minutes;

if(hours > 12)
{
	timedisplay = (hours-12)+':'+minutes+'pm';
}
else
{
	timedisplay = hours+':'+minutes+'am';
}

$(document).ready(function()
{
	//timedisplay = $.get('http://jamestindall.info/asynch/date_time');

	/*timedisplay = $.ajax
	(
		{
		url: "http://jamestindall.info/asynch/date_time",
		async: true
		}
	).responseText;*/

	$('.permatime').replaceWith('<a href="http://permatime.com/Europe/London/'+years+'-'+months+'-'+days+'/'+hours+':'+minutes+'" class="permatime" title="click to view this time in other time zones"><span class="time">'+timedisplay+'</span></a>');
});