line = line.split(/\t/);
date = Date.parse(line[0] + ' UTC');
var t = line[0].split(/[- :]/);
var d = new Date(t[0], t[1]-1, t[2], t[3], t[4], t[5]);
d = Date.parse(d);
GHAvg.push([
d,
parseFloat(line[1].replace(',', ''), 10) * 1000, ]);
Thanks! You seem to know your way around JavaScript (I am a bit dense at it).
The latest code in git and the 0.2.5 PR2 download just passes the raw timestamp to the graphs like this;-
jQuery.each(tsv, function (i, line) {
line = line.split(/\t/);
/ date = Date.parse(line[0] + ' UTC');
date = Date.parse(line[0]);
// var t = line[0].split(/[- :]/);
// var d = new Date(t[0], t[1]-1, t[2], t[3], t[4], t[5]);
GHAvg.push([
/date,
line[0],
parseFloat(line[1].replace(',', ''), 10) * 1000, ]);
Is seems to work on all browsers, any chance you can have a look and give your opinion what method is better?
Neil
P.S. Javascript is moronic when it comes to dates, there is no standard between browsers and it sucks

.