|
Post by paros59 on Feb 22, 2007 0:23:09 GMT 1
It's writen: "0:NaN:07" it's 0:23:07 ...
|
|
|
Post by stefkeswoon on Feb 22, 2007 11:18:57 GMT 1
That's already been reported, I remember. It's only going wrong at midnight, and I suppose it's not entirely clear where this little mistake comes from, otherwise it would be altered already, isn't it?
|
|
|
Post by coureurtjen on Feb 22, 2007 11:51:56 GMT 1
I've already saw it a feew times:d but I don't think padrino can change it
|
|
|
Post by Schizm on Feb 22, 2007 12:58:10 GMT 1
he could if he would change the code in bold
----------- function displayTime() { var serverTime = getClientTime() + serverOffset; var hours = Math.floor(serverTime / 60 / 60); var minutes = Math.floor(serverTime / 60 % (hours * 60)); var seconds = Math.floor(serverTime % 60); if (minutes <= 9) { minutes = "0"+minutes; } if (seconds <= 9) { seconds = "0"+seconds; }
document.getElementById("clock").innerHTML = hours + ":" + minutes + ":" + seconds; // <-- updates the "clock" div.
setTimeout(displayTime, 1000); // <-- calls this function again in 1 second. } -----------
into this
var minutes = Math.floor((serverTime-(hours*60*60)) / 60);
|
|
|
Post by Ambi on Feb 22, 2007 13:01:22 GMT 1
If that's the solution padrino could use that, good work schizm what would we do without you
|
|
|
Post by Il Padrino on Feb 22, 2007 20:17:16 GMT 1
Ok, changed it. Need a volunteer to stay up until 12.01 to see if it works
|
|
|
Post by Ambi on Feb 22, 2007 20:25:10 GMT 1
I'll do it, asked my dad and I'll stay up
|
|
|
Post by Ambi on Feb 22, 2007 23:37:48 GMT 1
So far the clock is still doing fine
|
|
|
Post by Ambi on Feb 23, 2007 0:04:17 GMT 1
No bug *yawn* nicely done padrino, I'd better get to bed now
|
|
|
Post by coureurtjen on Feb 23, 2007 0:06:34 GMT 1
I follow ambi no problems idd (damn we are nerds )
|
|
|
Post by Il Padrino on Feb 23, 2007 9:39:28 GMT 1
Hehe, now that's what I call dedication
|
|