So I have the following script:
<HTML><HEAD> <SCRIPT> function alert_minutes() { var d=new Date(); alert ('Minutes past the hour: '+d.getMinutes()); } </SCRIPT> </HEAD><BODY> <button onclick="alert_minutes()">Click Me</DIV> </BODY></HTML>
And upload it to Chrome. I push the button and she informs me
Minutes past the hour: 30
what is right. I speed up my local time by ten minutes, press it again, and he tells me
Minutes past the hour: 40
therefore no problem. Now I will return my local time at the right time, click it a third time and it still says
Minutes past the hour: 40
I refresh the page, click it for the fourth time, but she still says
Minutes past the hour: 40
I close all the Chrome windows and open the browser again, and finally it knows the right time.
So, I conclude: "Without closing or opening the browser, Chrome cannot process the local time set back, only forward." This is not the case when using the same script with Firefox. Does anyone know a workaround for this error? I am using Chrome 16 on Win XP.
flea whale
source share