client/annotviz/app/js/annotsvizview.js
changeset 129 7181e1f28eb0
parent 128 9f2334598088
child 131 0bb70072a56f
child 133 12f782a13fa2
--- a/client/annotviz/app/js/annotsvizview.js	Fri Jan 23 00:43:54 2015 +0100
+++ b/client/annotviz/app/js/annotsvizview.js	Fri Jan 23 01:00:00 2015 +0100
@@ -64,7 +64,7 @@
         annotCategories: this.annotCategories
     });
 	
-    
+    //Archive day 1
     var timeLineDay1 = new AnnotsTimeLine.AnnotsTimeLine({
     	stageView : stageView,
         archive: true,
@@ -72,8 +72,8 @@
         yInit: 0,
         width: 1024 - 200 - 200,
         height: 768-200,
-        timeBegin: this.timeBegin,
-        timeEnd: this.timeEnd,
+        timeBegin: Date.parse("2015-01-22T09:30:00+01:00"),
+        timeEnd: Date.parse("2015-01-22T18:30:00+01:00"),
         circleX: timeLineDay2.circleX,
         circleY: timeLineDay2.circleY,
         intervalWidth: (timeLineDay2.radius*2/3)* timeLineDay2.intervalWidth / timeLineDay2.radius,
@@ -162,15 +162,7 @@
 	};
 
 	this.updateTime = function(){
-    	currentTime = Date.now() + 3600*1000;
-
-        var nbSec = currentTime / 1000;
-        var hours = Math.floor( nbSec / 3600 ) % 24;
-        var minutes = Math.floor( nbSec / 60 ) % 60;
-        var seconds = Math.floor(nbSec % 60);
-        var timeStr = (hours < 10 ? '0' + hours : hours) + ':' + (minutes < 10 ? '0' + minutes : minutes) + ':' + (seconds  < 10 ? '0' + seconds : seconds);
-
-        currentTimeText.setText(timeStr);
+        currentTimeText.setText(Utils.formatTime(Date.now()));
     };
 
     var refreshTimeInterval;