(function () {

function adjust_all_times() {
	$('time').each(function () {
		var t = $(this);
		var d = t.attr('datetime').replace(/-/g, '/'
			).replace('T', ' ').replace('Z', ' GMT');
		t.html(readable_time(new Date(d).getTime()));
	});
}

adjust_all_times();

})();

(function () {

function adjust_all_times() {
	$('time').each(function () {
		var date = date_from_time_el(this);
		this.innerHTML = readable_time(date.getTime());
	});
}

function date_from_time_el(el) {
	var d = el.getAttribute('datetime').replace(/-/g, '/'
		).replace('T', ' ').replace('Z', ' GMT');
	return new Date(d);
}

adjust_all_times();

})();

Optimize adjust_all_times() and extract helper
Optimize adjust_all_times() and extract helper
