Skip to content

Commit 5cda014

Browse files
committed
Fixed time display bug probably
1 parent 75b7425 commit 5cda014

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/emo/js/daqcontrol.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,9 @@ return html;
272272

273273
}
274274
function GetElapsedTime(startTimeString){
275-
var currentDate = new Date();
275+
var currentDate = new Date().getTime();
276276
var startDate = Date.parse(startTimeString);
277+
277278
var seconds = Math.abs(currentDate - startDate)/1000;
278279
var hours = Math.floor(seconds/3600);
279280
var minutes = Math.floor((seconds - (hours*3600) ) /60);

0 commit comments

Comments
 (0)