Skip to content

Commit e9507da

Browse files
removed legacy time conversion for graph
* caused the graph to have incorrect timestamps, in turn causing the timebox to display incorrect time during mouse hover
1 parent 861616d commit e9507da

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

js/tracker.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -875,9 +875,7 @@ function graphAddLastPosition(idx) {
875875
vehicles[idx].graph_data_updated = true;
876876
var data = vehicles[idx].graph_data;
877877
var new_data = vehicles[idx].curr_position;
878-
var date = new Date(convert_time(new_data.gps_time));
879-
var tz_offset_milis = date.getTimezoneOffset() * 60000;
880-
var ts = date.getTime() - tz_offset_milis;
878+
var ts = convert_time(new_data.gps_time);
881879

882880
if(vehicles[idx].graph_data.length) {
883881
var ts_last_idx = data[0].data.length - 1;

0 commit comments

Comments
 (0)