MediaWiki:Vector.js

/* Any JavaScript here will be loaded for users using the Vector skin */

/* Japan Time */

function AddTime(offset) { d = new Date;

UTC = d.getTime + (d.getTimezoneOffset * 60000);

var options = { month: 'long', day: 'numeric', hour: 'numeric', minute: 'numeric' }; nd = new Date(UTC + (3600000*offset)); return nd.toLocaleString("en-US", options); }

document.getElementById("JPTime").innerHTML=AddTime(+9);