--- a/client/annotviz/app/js/annotstimeline.js Thu Jan 22 10:01:59 2015 +0100
+++ b/client/annotviz/app/js/annotstimeline.js Thu Jan 22 10:30:36 2015 +0100
@@ -99,8 +99,12 @@
var annotTime = Date.parse(data.ts);
if (this.timeEnd > Date.parse(data.ts)){
- var i = Math.floor((Date.parse(data.ts)-this.timeBegin)/(1000*this.intervalDuration));
-
+ console.log(this.timeBegin);
+ console.log(data.ts);
+ console.log(Date.parse(data.ts));
+ console.log(Date.now());
+ var i = Math.floor(((Date.parse(data.ts) + 3600*1000) - this.timeBegin)/(1000*this.intervalDuration));
+ console.log(i);
this.cells[i].categories[annotCode].count += 1;
this.cells[i].totalAnnots +=1;
this.redrawCell(this.cells[i], i);