Skip to content

Commit e4bcd83

Browse files
committed
Enforce that geolocation.timestamp is an integer (close snowplow#602)
1 parent 3241605 commit e4bcd83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/js/tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@
13411341
altitudeAccuracy: coords.altitudeAccuracy,
13421342
bearing: coords.heading,
13431343
speed: coords.speed,
1344-
timestamp: position.timestamp
1344+
timestamp: Math.round(position.timestamp)
13451345
}
13461346
};
13471347
commonContexts.push(geolocationContext);

0 commit comments

Comments
 (0)