Need workaround for Firefox Date() bug

Aizen

New Member
I'm working on a canvas graph that's updated in real time with information we're displaying to a customer, and were in the process of preparing for the DST change on the clocks. One of our requirements is for the graph to carry on functioning as usual without the need for the customer to refresh the page when the clocks switch over.While working on this problem, I found out about this bug with Firefox:https://bugzilla.mozilla.org/show_bug.cgi?id=127246Basically the Date() object in JavaScript doesn't update in Firefox if the system time is changed without having to close the browser/tab, and as we're querying an API using the system clock, this is a pretty major problem.I'm assuming it's not fixed as the ticket is still marked as 'NEW', and I'm also pretty sure it's this that's causing the problem rather than another part of my code, so how can i get the current time of the system clock after it changes in Firefox without having to refresh the page?FYI the version of Firefox I'm using is 19.0.2Thanks in advanceExampleSet system clock to 12:00 and open web app...\[code\]var currentHour = new Date().getHours() //returns 12\[/code\]Set system clock to 13:00 without reopening web app..\[code\]var currentHour = new Date().getHours() //returns 12\[/code\]
 
Back
Top