Web Worker workaround for Firefox Date() bug
HTML
Change your system time, the current time will be updated automatically.
<div id="hour"></div>
JavaScript
function currDate() {
var blob = new Blob([""]),
blobURL = window.URL ? window.URL.createObjectURL(blob) : window.webkitURL.createObjectURL(blob),
worker = new Worker(blobURL);
worker.terminate();
return new Date();
}
function update() {
document.getElementById("hour").innerHTML = "Current Hour: " + currDate();
setTimeout(function() {update();}, 16);
}
update();